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

Side by Side Diff: src/heap/spaces.cc

Issue 1340923004: [heap] Concurrency support for heap book-keeping info (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix correctness Created 5 years, 3 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
« src/heap/spaces.h ('K') | « src/heap/spaces.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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/heap/spaces.h" 5 #include "src/heap/spaces.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/platform/platform.h" 8 #include "src/base/platform/platform.h"
9 #include "src/full-codegen/full-codegen.h" 9 #include "src/full-codegen/full-codegen.h"
10 #include "src/heap/mark-compact.h" 10 #include "src/heap/mark-compact.h"
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 chunk->size_ = size; 486 chunk->size_ = size;
487 chunk->area_start_ = area_start; 487 chunk->area_start_ = area_start;
488 chunk->area_end_ = area_end; 488 chunk->area_end_ = area_end;
489 chunk->flags_ = 0; 489 chunk->flags_ = 0;
490 chunk->set_owner(owner); 490 chunk->set_owner(owner);
491 chunk->InitializeReservedMemory(); 491 chunk->InitializeReservedMemory();
492 chunk->slots_buffer_ = NULL; 492 chunk->slots_buffer_ = NULL;
493 chunk->skip_list_ = NULL; 493 chunk->skip_list_ = NULL;
494 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity; 494 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity;
495 chunk->progress_bar_ = 0; 495 chunk->progress_bar_ = 0;
496 chunk->high_water_mark_ = static_cast<int>(area_start - base); 496 chunk->high_water_mark_.SetValue(static_cast<intptr_t>(area_start - base));
497 chunk->set_parallel_sweeping(SWEEPING_DONE); 497 chunk->set_parallel_sweeping(SWEEPING_DONE);
498 chunk->mutex_ = NULL; 498 chunk->mutex_ = NULL;
499 chunk->available_in_small_free_list_ = 0; 499 chunk->available_in_small_free_list_ = 0;
500 chunk->available_in_medium_free_list_ = 0; 500 chunk->available_in_medium_free_list_ = 0;
501 chunk->available_in_large_free_list_ = 0; 501 chunk->available_in_large_free_list_ = 0;
502 chunk->available_in_huge_free_list_ = 0; 502 chunk->available_in_huge_free_list_ = 0;
503 chunk->non_available_small_blocks_ = 0; 503 chunk->non_available_small_blocks_ = 0;
504 chunk->ResetLiveBytes(); 504 chunk->ResetLiveBytes();
505 Bitmap::Clear(chunk); 505 Bitmap::Clear(chunk);
506 chunk->initialize_scan_on_scavenge(false); 506 chunk->initialize_scan_on_scavenge(false);
(...skipping 2678 matching lines...) Expand 10 before | Expand all | Expand 10 after
3185 object->ShortPrint(); 3185 object->ShortPrint();
3186 PrintF("\n"); 3186 PrintF("\n");
3187 } 3187 }
3188 printf(" --------------------------------------\n"); 3188 printf(" --------------------------------------\n");
3189 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3189 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3190 } 3190 }
3191 3191
3192 #endif // DEBUG 3192 #endif // DEBUG
3193 } // namespace internal 3193 } // namespace internal
3194 } // namespace v8 3194 } // namespace v8
OLDNEW
« src/heap/spaces.h ('K') | « src/heap/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698