Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Unified Diff: src/heap.h

Issue 660267: Tweak the new context disposal GC heuristic to cleanly separate... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/api.cc ('k') | src/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.h
===================================================================
--- src/heap.h (revision 3980)
+++ src/heap.h (working copy)
@@ -635,10 +635,11 @@
// Performs a full garbage collection if a context has been disposed
// since the last time the check was performed.
- static void CollectAllGarbageIfContextDisposed(bool notified);
+ static void CollectAllGarbageIfContextDisposedDeprecated();
// Notify the heap that a context has been disposed.
static void NotifyContextDisposed();
+ static void NotifyContextDisposedDeprecated();
// Utility to invoke the scavenger. This is needed in test code to
// ensure correct callback for weak global handles.
@@ -909,8 +910,12 @@
static int always_allocate_scope_depth_;
static int linear_allocation_scope_depth_;
- static bool context_disposed_pending_;
+ // For keeping track of context disposals.
+ static int contexts_disposed_;
+ static bool context_disposed_use_deprecated_heuristic_;
+ static bool context_disposed_deprecated_pending_;
+
#if defined(V8_TARGET_ARCH_X64)
static const int kMaxObjectSizeInNewSpace = 512*KB;
#else
« no previous file with comments | « src/api.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698