mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-03 16:51:52 +00:00
IdleNotification is on Isolate now
This commit is contained in:
parent
e25e5264f6
commit
137a6732c6
4
v8js.cc
4
v8js.cc
@ -621,7 +621,11 @@ static void php_v8js_free_storage(void *object TSRMLS_DC) /* {{{ */
|
|||||||
{
|
{
|
||||||
v8::Locker locker(c->isolate);
|
v8::Locker locker(c->isolate);
|
||||||
v8::Isolate::Scope isolate_scope(c->isolate);
|
v8::Isolate::Scope isolate_scope(c->isolate);
|
||||||
|
#if PHP_V8_API_VERSION < 3028036
|
||||||
while(!v8::V8::IdleNotification()) {};
|
while(!v8::V8::IdleNotification()) {};
|
||||||
|
#else
|
||||||
|
while(!c->isolate->IdleNotification(500)) {};
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dispose yet undisposed weak refs */
|
/* Dispose yet undisposed weak refs */
|
||||||
|
Loading…
Reference in New Issue
Block a user