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

Unified Diff: test/cctest/heap/test-mark-compact.cc

Issue 2439063002: [heap] Refactor marking deque. (Closed)
Patch Set: Stop incremental marking if it is in sweeping state Created 4 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
« no previous file with comments | « src/heap/mark-compact.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/heap/test-mark-compact.cc
diff --git a/test/cctest/heap/test-mark-compact.cc b/test/cctest/heap/test-mark-compact.cc
index 7a636ef5a24813c69d1d5b9c914973df63dcb6f3..bb5a94eefdbf4a2e7cd1f7e766a853dcbf69837d 100644
--- a/test/cctest/heap/test-mark-compact.cc
+++ b/test/cctest/heap/test-mark-compact.cc
@@ -51,13 +51,9 @@ using v8::Just;
TEST(MarkingDeque) {
CcTest::InitializeVM();
- int mem_size = 20 * kPointerSize;
- byte* mem = NewArray<byte>(20*kPointerSize);
- Address low = reinterpret_cast<Address>(mem);
- Address high = low + mem_size;
MarkingDeque s;
- s.Initialize(low, high);
-
+ s.SetUp();
+ s.StartUsing();
Address original_address = reinterpret_cast<Address>(&s);
Address current_address = original_address;
while (!s.IsFull()) {
@@ -72,7 +68,8 @@ TEST(MarkingDeque) {
}
CHECK_EQ(original_address, current_address);
- DeleteArray(mem);
+ s.StopUsing();
+ s.TearDown();
}
TEST(Promotion) {
« no previous file with comments | « src/heap/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698