| Index: src/heap/heap.h
|
| diff --git a/src/heap/heap.h b/src/heap/heap.h
|
| index 528ef4d517e2d5536f639418aeec85ab30137f16..07361040922fce1eba0f6be29efa9b680587b301 100644
|
| --- a/src/heap/heap.h
|
| +++ b/src/heap/heap.h
|
| @@ -754,7 +754,7 @@ class Heap {
|
| bool IsHeapIterable();
|
|
|
| // Notify the heap that a context has been disposed.
|
| - int NotifyContextDisposed();
|
| + void NotifyContextDisposed();
|
|
|
| inline void increment_scan_on_scavenge_pages() {
|
| scan_on_scavenge_pages_++;
|
| @@ -1462,13 +1462,16 @@ class Heap {
|
|
|
| int always_allocate_scope_depth_;
|
|
|
| - // For keeping track of context disposals.
|
| - int contexts_disposed_;
|
| -
|
| int global_ic_age_;
|
|
|
| bool flush_monomorphic_ics_;
|
|
|
| + // If context disposals happen at a high rate, we do a full gc in between
|
| + // context disposal.
|
| + // TODO(hpayer): We should get rid of that mode.
|
| + static const int kNotifyContextDisposedFullGCLimitInMS = 1000;
|
| + double last_notify_context_disposed_;
|
| +
|
| int scan_on_scavenge_pages_;
|
|
|
| NewSpace new_space_;
|
|
|