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

Side by Side Diff: src/mark-compact.cc

Issue 365853003: Revert "Precisely sweep scan on scavenge pages and use heap iterator to iterate over them." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/store-buffer.cc » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/base/atomicops.h" 7 #include "src/base/atomicops.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compilation-cache.h" 9 #include "src/compilation-cache.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 4128 matching lines...) Expand 10 before | Expand all | Expand 10 after
4139 case PARALLEL_CONSERVATIVE: { 4139 case PARALLEL_CONSERVATIVE: {
4140 if (!parallel_sweeping_active) { 4140 if (!parallel_sweeping_active) {
4141 if (FLAG_gc_verbose) { 4141 if (FLAG_gc_verbose) {
4142 PrintF("Sweeping 0x%" V8PRIxPTR " conservatively.\n", 4142 PrintF("Sweeping 0x%" V8PRIxPTR " conservatively.\n",
4143 reinterpret_cast<intptr_t>(p)); 4143 reinterpret_cast<intptr_t>(p));
4144 } 4144 }
4145 SweepConservatively<SWEEP_SEQUENTIALLY>(space, NULL, p); 4145 SweepConservatively<SWEEP_SEQUENTIALLY>(space, NULL, p);
4146 pages_swept++; 4146 pages_swept++;
4147 parallel_sweeping_active = true; 4147 parallel_sweeping_active = true;
4148 } else { 4148 } else {
4149 if (p->scan_on_scavenge()) { 4149 if (FLAG_gc_verbose) {
4150 SweepPrecisely<SWEEP_ONLY, IGNORE_SKIP_LIST, IGNORE_FREE_SPACE>( 4150 PrintF("Sweeping 0x%" V8PRIxPTR " conservatively in parallel.\n",
4151 space, p, NULL); 4151 reinterpret_cast<intptr_t>(p));
4152 pages_swept++;
4153 if (FLAG_gc_verbose) {
4154 PrintF("Sweeping 0x%" V8PRIxPTR
4155 " scan on scavenge page precisely.\n",
4156 reinterpret_cast<intptr_t>(p));
4157 }
4158 } else {
4159 if (FLAG_gc_verbose) {
4160 PrintF("Sweeping 0x%" V8PRIxPTR " conservatively in parallel.\n",
4161 reinterpret_cast<intptr_t>(p));
4162 }
4163 p->set_parallel_sweeping(MemoryChunk::PARALLEL_SWEEPING_PENDING);
4164 space->IncreaseUnsweptFreeBytes(p);
4165 } 4152 }
4153 p->set_parallel_sweeping(MemoryChunk::PARALLEL_SWEEPING_PENDING);
4154 space->IncreaseUnsweptFreeBytes(p);
4166 } 4155 }
4167 space->set_end_of_unswept_pages(p); 4156 space->set_end_of_unswept_pages(p);
4168 break; 4157 break;
4169 } 4158 }
4170 case PRECISE: { 4159 case PRECISE: {
4171 if (FLAG_gc_verbose) { 4160 if (FLAG_gc_verbose) {
4172 PrintF("Sweeping 0x%" V8PRIxPTR " precisely.\n", 4161 PrintF("Sweeping 0x%" V8PRIxPTR " precisely.\n",
4173 reinterpret_cast<intptr_t>(p)); 4162 reinterpret_cast<intptr_t>(p));
4174 } 4163 }
4175 if (space->identity() == CODE_SPACE && FLAG_zap_code_space) { 4164 if (space->identity() == CODE_SPACE && FLAG_zap_code_space) {
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
4501 while (buffer != NULL) { 4490 while (buffer != NULL) {
4502 SlotsBuffer* next_buffer = buffer->next(); 4491 SlotsBuffer* next_buffer = buffer->next();
4503 DeallocateBuffer(buffer); 4492 DeallocateBuffer(buffer);
4504 buffer = next_buffer; 4493 buffer = next_buffer;
4505 } 4494 }
4506 *buffer_address = NULL; 4495 *buffer_address = NULL;
4507 } 4496 }
4508 4497
4509 4498
4510 } } // namespace v8::internal 4499 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/store-buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698