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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapCompact.h

Issue 2908463002: Enable heap compaction on all 'container' arenas. (Closed)
Patch Set: add checks for compaction being activated. Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/platform/heap/HeapCompact.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/HeapCompact.h
diff --git a/third_party/WebKit/Source/platform/heap/HeapCompact.h b/third_party/WebKit/Source/platform/heap/HeapCompact.h
index 3e6a88375eef214cce2f9f1408b98980787aa759..395f35366ea82d14be8749d490ba24e5f4758d48 100644
--- a/third_party/WebKit/Source/platform/heap/HeapCompact.h
+++ b/third_party/WebKit/Source/platform/heap/HeapCompact.h
@@ -111,6 +111,17 @@ class PLATFORM_EXPORT HeapCompact final {
// to the new value, returning old.
static bool ScheduleCompactionGCForTesting(bool);
+ // Test-only: verify that one or more of the vector arenas are
+ // in the process of being compacted.
+ bool IsCompactingVectorArenas() {
+ for (int i = BlinkGC::kVector1ArenaIndex; i <= BlinkGC::kVector4ArenaIndex;
+ ++i) {
+ if (IsCompactingArena(i))
+ return true;
+ }
+ return false;
+ }
+
private:
class MovableObjectFixups;
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/HeapCompact.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698