diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2014-03-13 20:47:02 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2014-03-13 20:56:56 +0400 |
commit | 0c5a0ecc7c8b203aa34a43f0fb8f3bf81cce7f41 (patch) | |
tree | e9c2b2de91c5284c381cbb5b307109fb66cd29ea /deps/v8/include | |
parent | 030d03190f3daf323b78138717b2e84cf299cdbe (diff) | |
download | node-new-0c5a0ecc7c8b203aa34a43f0fb8f3bf81cce7f41.tar.gz |
deps: allow allocations in gc epilogue/prologue
See https://codereview.chromium.org/177243012/
Diffstat (limited to 'deps/v8/include')
-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); |