浏览代码

IdleNotification is on Isolate now

Stefan Siegl 10 年之前
父节点
当前提交
137a6732c6
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      v8js.cc

+ 4 - 0
v8js.cc

@@ -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 */