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

Unified Diff: src/mark-compact.h

Issue 545026: Add some interfaces to the GC that allow us to reserve space. This is needed... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 11 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
Index: src/mark-compact.h
===================================================================
--- src/mark-compact.h (revision 3575)
+++ src/mark-compact.h (working copy)
@@ -92,7 +92,9 @@
static bool HasCompacted() { return compacting_collection_; }
// True after the Prepare phase if the compaction is taking place.
- static bool IsCompacting() { return compacting_collection_; }
+ static bool IsCompacting() {
+ return state_ != IDLE && compacting_collection_;
+ }
// The count of the number of objects left marked at the end of the last
// completed full GC (expected to be zero).

Powered by Google App Engine
This is Rietveld 408576698