diff options
author | Ryan <ry@tinyclouds.org> | 2009-08-21 13:13:04 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-08-21 13:13:04 +0200 |
commit | 048a1b8b9e5184f959ce924e76c61f8cd9e91089 (patch) | |
tree | 564bc754e09e25209b5ab28aa0b6880f23feb0eb /deps/v8/src/mark-compact.h | |
parent | 90ac9ab078926fb11a3b1ce5f155caec230e0250 (diff) | |
download | node-048a1b8b9e5184f959ce924e76c61f8cd9e91089.tar.gz |
Upgrade v8 to 1.3.6
Diffstat (limited to 'deps/v8/src/mark-compact.h')
-rw-r--r-- | deps/v8/src/mark-compact.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/v8/src/mark-compact.h b/deps/v8/src/mark-compact.h index bd9e4a028..0bd212e0c 100644 --- a/deps/v8/src/mark-compact.h +++ b/deps/v8/src/mark-compact.h @@ -75,6 +75,12 @@ class MarkCompactCollector: public AllStatic { // Type of functions to process non-live objects. typedef void (*ProcessNonLiveFunction)(HeapObject* object); + // Set the global force_compaction flag, it must be called before Prepare + // to take effect. + static void SetForceCompaction(bool value) { + force_compaction_ = value; + } + // Prepares for GC by resetting relocation info in old and map spaces and // choosing spaces to compact. static void Prepare(GCTracer* tracer); @@ -117,6 +123,10 @@ class MarkCompactCollector: public AllStatic { // The current stage of the collector. static CollectorState state_; #endif + + // Global flag that forces a compaction. + static bool force_compaction_; + // Global flag indicating whether spaces were compacted on the last GC. static bool compacting_collection_; |