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

Side by Side Diff: test/cctest/heap/test-heap.cc

Issue 1640563004: Reland of "[heap] Parallel newspace evacuation, semispace copy, and compaction \o/" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Convert bogus DCHECK into proper branch Created 4 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 unified diff | Download patch
« no previous file with comments | « src/utils-inl.h ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3496 matching lines...) Expand 10 before | Expand all | Expand 10 after
3507 CHECK(root->map()->IsMap()); 3507 CHECK(root->map()->IsMap());
3508 } 3508 }
3509 3509
3510 3510
3511 TEST(ReleaseOverReservedPages) { 3511 TEST(ReleaseOverReservedPages) {
3512 if (FLAG_never_compact) return; 3512 if (FLAG_never_compact) return;
3513 i::FLAG_trace_gc = true; 3513 i::FLAG_trace_gc = true;
3514 // The optimizer can allocate stuff, messing up the test. 3514 // The optimizer can allocate stuff, messing up the test.
3515 i::FLAG_crankshaft = false; 3515 i::FLAG_crankshaft = false;
3516 i::FLAG_always_opt = false; 3516 i::FLAG_always_opt = false;
3517 // Parallel compaction increases fragmentation, depending on how existing
3518 // memory is distributed. Since this is non-deterministic because of
3519 // concurrent sweeping, we disable it for this test.
3520 i::FLAG_parallel_compaction = false;
3521 // Concurrent sweeping adds non determinism, depending on when memory is
3522 // available for further reuse.
3523 i::FLAG_concurrent_sweeping = false;
3517 CcTest::InitializeVM(); 3524 CcTest::InitializeVM();
3518 Isolate* isolate = CcTest::i_isolate(); 3525 Isolate* isolate = CcTest::i_isolate();
3519 Factory* factory = isolate->factory(); 3526 Factory* factory = isolate->factory();
3520 Heap* heap = isolate->heap(); 3527 Heap* heap = isolate->heap();
3521 v8::HandleScope scope(CcTest::isolate()); 3528 v8::HandleScope scope(CcTest::isolate());
3522 static const int number_of_test_pages = 20; 3529 static const int number_of_test_pages = 20;
3523 3530
3524 // Prepare many pages with low live-bytes count. 3531 // Prepare many pages with low live-bytes count.
3525 PagedSpace* old_space = heap->old_space(); 3532 PagedSpace* old_space = heap->old_space();
3526 CHECK_EQ(1, old_space->CountTotalPages()); 3533 CHECK_EQ(1, old_space->CountTotalPages());
(...skipping 2913 matching lines...) Expand 10 before | Expand all | Expand 10 after
6440 isolate->IncrementJsCallsFromApiCounter(); 6447 isolate->IncrementJsCallsFromApiCounter();
6441 isolate->IncrementJsCallsFromApiCounter(); 6448 isolate->IncrementJsCallsFromApiCounter();
6442 isolate->IncrementJsCallsFromApiCounter(); 6449 isolate->IncrementJsCallsFromApiCounter();
6443 calls_per_ms = memory_reducer->SampleAndGetJsCallsPerMs(4); 6450 calls_per_ms = memory_reducer->SampleAndGetJsCallsPerMs(4);
6444 CheckDoubleEquals(2, calls_per_ms); 6451 CheckDoubleEquals(2, calls_per_ms);
6445 } 6452 }
6446 6453
6447 6454
6448 } // namespace internal 6455 } // namespace internal
6449 } // namespace v8 6456 } // namespace v8
OLDNEW
« no previous file with comments | « src/utils-inl.h ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698