diff options
Diffstat (limited to 'deps/v8/include/v8.h')
-rw-r--r-- | deps/v8/include/v8.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index dd8f2685bc..f3a21b60f6 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -4127,13 +4127,12 @@ class V8_EXPORT Isolate { /** * Enables the host application to receive a notification before a - * garbage collection. Allocations are not allowed in the - * callback function, you therefore cannot manipulate objects (set - * or delete properties for example) since it is possible such - * operations will result in the allocation of objects. It is possible - * to specify the GCType filter for your callback. But it is not possible to - * register the same callback function two times with different - * GCType filters. + * garbage collection. Allocations are allowed in the callback function, + * but the callback is not re-entrant: if the allocation inside it will + * trigger the Garbage Collection, the callback won't be called again. + * It is possible to specify the GCType filter for your callback. But it is + * not possible to register the same callback function two times with + * different GCType filters. */ void AddGCPrologueCallback( GCPrologueCallback callback, GCType gc_type_filter = kGCTypeAll); @@ -4146,13 +4145,12 @@ class V8_EXPORT Isolate { /** * Enables the host application to receive a notification after a - * garbage collection. Allocations are not allowed in the - * callback function, you therefore cannot manipulate objects (set - * or delete properties for example) since it is possible such - * operations will result in the allocation of objects. It is possible - * to specify the GCType filter for your callback. But it is not possible to - * register the same callback function two times with different - * GCType filters. + * garbage collection. Allocations are allowed in the callback function, + * but the callback is not re-entrant: if the allocation inside it will + * trigger the Garbage Collection, the callback won't be called again. + * It is possible to specify the GCType filter for your callback. But it is + * not possible to register the same callback function two times with + * different GCType filters. */ void AddGCEpilogueCallback( GCEpilogueCallback callback, GCType gc_type_filter = kGCTypeAll); |