Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index dd8f2685bc37115638f5332ddbefd42a79c16cea..f3a21b60f61c939ffb580a393a6e4ad081c43577 100644 |
| --- a/include/v8.h |
| +++ b/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. |
|
Hannes Payer (out of office)
2014/03/14 08:57:15
a garbage collection
|
| + * 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. |
|
Hannes Payer (out of office)
2014/03/14 08:57:15
a garbage collection
|
| + * 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); |