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

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

Issue 2375983002: Revert of [heap] New heuristics for starting of incremental marking. (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « test/cctest/heap/heap-tester.h ('k') | no next file » | 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 5565 matching lines...) Expand 10 before | Expand all | Expand 10 after
5576 #endif // DEBUG 5576 #endif // DEBUG
5577 5577
5578 5578
5579 static void InterruptCallback357137(v8::Isolate* isolate, void* data) { } 5579 static void InterruptCallback357137(v8::Isolate* isolate, void* data) { }
5580 5580
5581 5581
5582 static void RequestInterrupt(const v8::FunctionCallbackInfo<v8::Value>& args) { 5582 static void RequestInterrupt(const v8::FunctionCallbackInfo<v8::Value>& args) {
5583 CcTest::isolate()->RequestInterrupt(&InterruptCallback357137, NULL); 5583 CcTest::isolate()->RequestInterrupt(&InterruptCallback357137, NULL);
5584 } 5584 }
5585 5585
5586 HEAP_TEST(Regress538257) { 5586
5587 UNINITIALIZED_TEST(Regress538257) {
5587 i::FLAG_manual_evacuation_candidates_selection = true; 5588 i::FLAG_manual_evacuation_candidates_selection = true;
5588 v8::Isolate::CreateParams create_params; 5589 v8::Isolate::CreateParams create_params;
5589 // Set heap limits. 5590 // Set heap limits.
5590 create_params.constraints.set_max_semi_space_size(1); 5591 create_params.constraints.set_max_semi_space_size(1);
5591 create_params.constraints.set_max_old_space_size(6); 5592 create_params.constraints.set_max_old_space_size(6);
5592 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); 5593 create_params.array_buffer_allocator = CcTest::array_buffer_allocator();
5593 v8::Isolate* isolate = v8::Isolate::New(create_params); 5594 v8::Isolate* isolate = v8::Isolate::New(create_params);
5594 isolate->Enter(); 5595 isolate->Enter();
5595 { 5596 {
5596 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); 5597 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after
7120 heap::SimulateFullSpace(heap->new_space()); 7121 heap::SimulateFullSpace(heap->new_space());
7121 } 7122 }
7122 heap::GcAndSweep(heap, OLD_SPACE); 7123 heap::GcAndSweep(heap, OLD_SPACE);
7123 for (Page* p : *heap->new_space()) { 7124 for (Page* p : *heap->new_space()) {
7124 CHECK(!p->InIntermediateGeneration()); 7125 CHECK(!p->InIntermediateGeneration());
7125 } 7126 }
7126 } 7127 }
7127 7128
7128 } // namespace internal 7129 } // namespace internal
7129 } // namespace v8 7130 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/heap/heap-tester.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698