0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-09 23:08:41 +00:00

IdleNotification is on Isolate now

This commit is contained in:
Stefan Siegl 2014-08-10 13:36:07 +02:00
parent e25e5264f6
commit 137a6732c6

View File

@ -621,7 +621,11 @@ static void php_v8js_free_storage(void *object TSRMLS_DC) /* {{{ */
{
v8::Locker locker(c->isolate);
v8::Isolate::Scope isolate_scope(c->isolate);
#if PHP_V8_API_VERSION < 3028036
while(!v8::V8::IdleNotification()) {};
#else
while(!c->isolate->IdleNotification(500)) {};
#endif
}
/* Dispose yet undisposed weak refs */