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

Unified Diff: src/objects.h

Issue 1415733004: Reland of "[heap] Divide available memory upon compaction tasks" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix returning left over memory and add proper checks Created 5 years, 2 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/objects.h
diff --git a/src/objects.h b/src/objects.h
index 6c209b179207407623aa850d85587528c23b0a1c..e2d8e30678ff010f4c7a92a43b8477824639bf07 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4408,6 +4408,11 @@ class FreeSpace: public HeapObject {
static const int kSizeOffset = HeapObject::kHeaderSize;
static const int kNextOffset = POINTER_SIZE_ALIGN(kSizeOffset + kPointerSize);
+ // Minimum size for any free space node. Required to be power of two.
+ static const int kMinSize = 32;
+ STATIC_ASSERT(kMinSize >= (kNextOffset + kPointerSize));
+ STATIC_ASSERT(IS_POWER_OF_TWO(kMinSize));
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(FreeSpace);
};
« src/heap/spaces.cc ('K') | « src/heap/spaces.cc ('k') | test/cctest/heap-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698