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

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

Issue 2209583002: [heap] Remove border page (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Allow empty intermediate generation 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 | « src/heap/spaces-inl.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 7092 matching lines...) Expand 10 before | Expand all | Expand 10 after
7103 7103
7104 RememberedSet<OLD_TO_NEW>::RemoveRange( 7104 RememberedSet<OLD_TO_NEW>::RemoveRange(
7105 chunk, chunk->area_end() - kPointerSize, chunk->area_end()); 7105 chunk, chunk->area_end() - kPointerSize, chunk->area_end());
7106 slots[chunk->area_end() - kPointerSize] = false; 7106 slots[chunk->area_end() - kPointerSize] = false;
7107 RememberedSet<OLD_TO_NEW>::Iterate(chunk, [&slots](Address addr) { 7107 RememberedSet<OLD_TO_NEW>::Iterate(chunk, [&slots](Address addr) {
7108 CHECK(slots[addr]); 7108 CHECK(slots[addr]);
7109 return KEEP_SLOT; 7109 return KEEP_SLOT;
7110 }); 7110 });
7111 } 7111 }
7112 7112
7113 TEST(EmptyIntermediateGeneration) {
7114 CcTest::InitializeVM();
7115 Heap* heap = CcTest::heap();
7116 heap::GcAndSweep(heap, OLD_SPACE);
7117 v8::HandleScope scope(CcTest::isolate());
7118 {
7119 v8::HandleScope temp_scope(CcTest::isolate());
7120 heap::SimulateFullSpace(heap->new_space());
7121 }
7122 heap::GcAndSweep(heap, OLD_SPACE);
7123 for (Page* p : *heap->new_space()) {
7124 CHECK(!p->InIntermediateGeneration());
7125 }
7126 }
7127
7113 } // namespace internal 7128 } // namespace internal
7114 } // namespace v8 7129 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/spaces-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698