Commit 28810a2a authored by Ulan Degenbaev's avatar Ulan Degenbaev Committed by Commit Bot

[heap] More cctest fixes for concurrent marker.

BUG=chromium:694255

Change-Id: Ia985a00fe2193bac96057994d93718224706ca04
Reviewed-on: https://chromium-review.googlesource.com/531168
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#45893}
parent 09637ab3
...@@ -114,7 +114,7 @@ TEST(ArrayBuffer_ScavengeAndMC) { ...@@ -114,7 +114,7 @@ TEST(ArrayBuffer_ScavengeAndMC) {
} }
TEST(ArrayBuffer_Compaction) { TEST(ArrayBuffer_Compaction) {
if (!FLAG_never_compact) return; if (FLAG_never_compact) return;
FLAG_concurrent_marking = false; FLAG_concurrent_marking = false;
FLAG_stress_incremental_marking = false; FLAG_stress_incremental_marking = false;
FLAG_manual_evacuation_candidates_selection = true; FLAG_manual_evacuation_candidates_selection = true;
...@@ -194,6 +194,7 @@ TEST(ArrayBuffer_UnregisterDuringSweep) { ...@@ -194,6 +194,7 @@ TEST(ArrayBuffer_UnregisterDuringSweep) {
TEST(ArrayBuffer_NonLivePromotion) { TEST(ArrayBuffer_NonLivePromotion) {
if (!FLAG_incremental_marking) return; if (!FLAG_incremental_marking) return;
ManualGCScope manual_gc_scope;
// The test verifies that the marking state is preserved when promoting // The test verifies that the marking state is preserved when promoting
// a buffer to old space. // a buffer to old space.
CcTest::InitializeVM(); CcTest::InitializeVM();
...@@ -230,6 +231,7 @@ TEST(ArrayBuffer_NonLivePromotion) { ...@@ -230,6 +231,7 @@ TEST(ArrayBuffer_NonLivePromotion) {
TEST(ArrayBuffer_LivePromotion) { TEST(ArrayBuffer_LivePromotion) {
if (!FLAG_incremental_marking) return; if (!FLAG_incremental_marking) return;
ManualGCScope manual_gc_scope;
// The test verifies that the marking state is preserved when promoting // The test verifies that the marking state is preserved when promoting
// a buffer to old space. // a buffer to old space.
CcTest::InitializeVM(); CcTest::InitializeVM();
......
...@@ -159,6 +159,7 @@ HEAP_TEST(CompactionPartiallyAbortedPage) { ...@@ -159,6 +159,7 @@ HEAP_TEST(CompactionPartiallyAbortedPage) {
HEAP_TEST(CompactionPartiallyAbortedPageIntraAbortedPointers) { HEAP_TEST(CompactionPartiallyAbortedPageIntraAbortedPointers) {
if (!FLAG_never_compact) return;
// Test the scenario where we reach OOM during compaction and parts of the // Test the scenario where we reach OOM during compaction and parts of the
// page have already been migrated to a new one. Objects on the aborted page // page have already been migrated to a new one. Objects on the aborted page
// are linked together. This test makes sure that intra-aborted page pointers // are linked together. This test makes sure that intra-aborted page pointers
...@@ -245,6 +246,7 @@ HEAP_TEST(CompactionPartiallyAbortedPageIntraAbortedPointers) { ...@@ -245,6 +246,7 @@ HEAP_TEST(CompactionPartiallyAbortedPageIntraAbortedPointers) {
HEAP_TEST(CompactionPartiallyAbortedPageWithStoreBufferEntries) { HEAP_TEST(CompactionPartiallyAbortedPageWithStoreBufferEntries) {
if (FLAG_never_compact) return;
// Test the scenario where we reach OOM during compaction and parts of the // Test the scenario where we reach OOM during compaction and parts of the
// page have already been migrated to a new one. Objects on the aborted page // page have already been migrated to a new one. Objects on the aborted page
// are linked together and the very first object on the aborted page points // are linked together and the very first object on the aborted page points
......
...@@ -737,6 +737,7 @@ TEST(DeleteWeakGlobalHandle) { ...@@ -737,6 +737,7 @@ TEST(DeleteWeakGlobalHandle) {
} }
TEST(BytecodeArray) { TEST(BytecodeArray) {
if (FLAG_never_compact) return;
static const uint8_t kRawBytes[] = {0xc3, 0x7e, 0xa5, 0x5a}; static const uint8_t kRawBytes[] = {0xc3, 0x7e, 0xa5, 0x5a};
static const int kRawBytesSize = sizeof(kRawBytes); static const int kRawBytesSize = sizeof(kRawBytes);
static const int kFrameSize = 32; static const int kFrameSize = 32;
...@@ -3860,9 +3861,9 @@ TEST(Regress513496) { ...@@ -3860,9 +3861,9 @@ TEST(Regress513496) {
TEST(LargeObjectSlotRecording) { TEST(LargeObjectSlotRecording) {
if (!FLAG_incremental_marking) return; if (!FLAG_incremental_marking) return;
FLAG_concurrent_marking = false; if (FLAG_never_compact) return;
ManualGCScope manual_gc_scope;
FLAG_manual_evacuation_candidates_selection = true; FLAG_manual_evacuation_candidates_selection = true;
FLAG_stress_incremental_marking = false;
CcTest::InitializeVM(); CcTest::InitializeVM();
Isolate* isolate = CcTest::i_isolate(); Isolate* isolate = CcTest::i_isolate();
Heap* heap = isolate->heap(); Heap* heap = isolate->heap();
......
...@@ -530,6 +530,7 @@ static void TestDeoptimizeBinaryOpHelper(LocalContext* env, ...@@ -530,6 +530,7 @@ static void TestDeoptimizeBinaryOpHelper(LocalContext* env,
UNINITIALIZED_TEST(DeoptimizeBinaryOperationADD) { UNINITIALIZED_TEST(DeoptimizeBinaryOperationADD) {
ManualGCScope manual_gc_scope;
i::FLAG_concurrent_recompilation = false; i::FLAG_concurrent_recompilation = false;
v8::Isolate::CreateParams create_params; v8::Isolate::CreateParams create_params;
create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); create_params.array_buffer_allocator = CcTest::array_buffer_allocator();
...@@ -560,6 +561,7 @@ UNINITIALIZED_TEST(DeoptimizeBinaryOperationADD) { ...@@ -560,6 +561,7 @@ UNINITIALIZED_TEST(DeoptimizeBinaryOperationADD) {
UNINITIALIZED_TEST(DeoptimizeBinaryOperationSUB) { UNINITIALIZED_TEST(DeoptimizeBinaryOperationSUB) {
ManualGCScope manual_gc_scope;
i::FLAG_concurrent_recompilation = false; i::FLAG_concurrent_recompilation = false;
v8::Isolate::CreateParams create_params; v8::Isolate::CreateParams create_params;
create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); create_params.array_buffer_allocator = CcTest::array_buffer_allocator();
...@@ -590,6 +592,7 @@ UNINITIALIZED_TEST(DeoptimizeBinaryOperationSUB) { ...@@ -590,6 +592,7 @@ UNINITIALIZED_TEST(DeoptimizeBinaryOperationSUB) {
UNINITIALIZED_TEST(DeoptimizeBinaryOperationMUL) { UNINITIALIZED_TEST(DeoptimizeBinaryOperationMUL) {
ManualGCScope manual_gc_scope;
i::FLAG_concurrent_recompilation = false; i::FLAG_concurrent_recompilation = false;
v8::Isolate::CreateParams create_params; v8::Isolate::CreateParams create_params;
create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); create_params.array_buffer_allocator = CcTest::array_buffer_allocator();
...@@ -620,6 +623,7 @@ UNINITIALIZED_TEST(DeoptimizeBinaryOperationMUL) { ...@@ -620,6 +623,7 @@ UNINITIALIZED_TEST(DeoptimizeBinaryOperationMUL) {
UNINITIALIZED_TEST(DeoptimizeBinaryOperationDIV) { UNINITIALIZED_TEST(DeoptimizeBinaryOperationDIV) {
ManualGCScope manual_gc_scope;
i::FLAG_concurrent_recompilation = false; i::FLAG_concurrent_recompilation = false;
v8::Isolate::CreateParams create_params; v8::Isolate::CreateParams create_params;
create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); create_params.array_buffer_allocator = CcTest::array_buffer_allocator();
...@@ -650,6 +654,7 @@ UNINITIALIZED_TEST(DeoptimizeBinaryOperationDIV) { ...@@ -650,6 +654,7 @@ UNINITIALIZED_TEST(DeoptimizeBinaryOperationDIV) {
UNINITIALIZED_TEST(DeoptimizeBinaryOperationMOD) { UNINITIALIZED_TEST(DeoptimizeBinaryOperationMOD) {
ManualGCScope manual_gc_scope;
i::FLAG_concurrent_recompilation = false; i::FLAG_concurrent_recompilation = false;
v8::Isolate::CreateParams create_params; v8::Isolate::CreateParams create_params;
create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); create_params.array_buffer_allocator = CcTest::array_buffer_allocator();
...@@ -680,6 +685,7 @@ UNINITIALIZED_TEST(DeoptimizeBinaryOperationMOD) { ...@@ -680,6 +685,7 @@ UNINITIALIZED_TEST(DeoptimizeBinaryOperationMOD) {
UNINITIALIZED_TEST(DeoptimizeCompare) { UNINITIALIZED_TEST(DeoptimizeCompare) {
ManualGCScope manual_gc_scope;
i::FLAG_concurrent_recompilation = false; i::FLAG_concurrent_recompilation = false;
v8::Isolate::CreateParams create_params; v8::Isolate::CreateParams create_params;
create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); create_params.array_buffer_allocator = CcTest::array_buffer_allocator();
...@@ -744,6 +750,7 @@ UNINITIALIZED_TEST(DeoptimizeCompare) { ...@@ -744,6 +750,7 @@ UNINITIALIZED_TEST(DeoptimizeCompare) {
UNINITIALIZED_TEST(DeoptimizeLoadICStoreIC) { UNINITIALIZED_TEST(DeoptimizeLoadICStoreIC) {
ManualGCScope manual_gc_scope;
i::FLAG_concurrent_recompilation = false; i::FLAG_concurrent_recompilation = false;
v8::Isolate::CreateParams create_params; v8::Isolate::CreateParams create_params;
create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); create_params.array_buffer_allocator = CcTest::array_buffer_allocator();
...@@ -844,6 +851,7 @@ UNINITIALIZED_TEST(DeoptimizeLoadICStoreIC) { ...@@ -844,6 +851,7 @@ UNINITIALIZED_TEST(DeoptimizeLoadICStoreIC) {
UNINITIALIZED_TEST(DeoptimizeLoadICStoreICNested) { UNINITIALIZED_TEST(DeoptimizeLoadICStoreICNested) {
ManualGCScope manual_gc_scope;
i::FLAG_concurrent_recompilation = false; i::FLAG_concurrent_recompilation = false;
v8::Isolate::CreateParams create_params; v8::Isolate::CreateParams create_params;
create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); create_params.array_buffer_allocator = CcTest::array_buffer_allocator();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment