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

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

Issue 1099783003: Reland Force full GCwhenever CollectAllGarbage is meant to trigger a full GC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/mark-compact.h ('k') | src/heap/mark-compact-inl.h » ('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/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/compilation-cache.h" 10 #include "src/compilation-cache.h"
(...skipping 24 matching lines...) Expand all
35 // ------------------------------------------------------------------------- 35 // -------------------------------------------------------------------------
36 // MarkCompactCollector 36 // MarkCompactCollector
37 37
38 MarkCompactCollector::MarkCompactCollector(Heap* heap) 38 MarkCompactCollector::MarkCompactCollector(Heap* heap)
39 : // NOLINT 39 : // NOLINT
40 #ifdef DEBUG 40 #ifdef DEBUG
41 state_(IDLE), 41 state_(IDLE),
42 #endif 42 #endif
43 reduce_memory_footprint_(false), 43 reduce_memory_footprint_(false),
44 abort_incremental_marking_(false), 44 abort_incremental_marking_(false),
45 finalize_incremental_marking_(false),
45 marking_parity_(ODD_MARKING_PARITY), 46 marking_parity_(ODD_MARKING_PARITY),
46 compacting_(false), 47 compacting_(false),
47 was_marked_incrementally_(false), 48 was_marked_incrementally_(false),
48 sweeping_in_progress_(false), 49 sweeping_in_progress_(false),
49 pending_sweeper_jobs_semaphore_(0), 50 pending_sweeper_jobs_semaphore_(0),
50 evacuation_(false), 51 evacuation_(false),
51 migration_slots_buffer_(NULL), 52 migration_slots_buffer_(NULL),
52 heap_(heap), 53 heap_(heap),
53 marking_deque_memory_(NULL), 54 marking_deque_memory_(NULL),
54 marking_deque_memory_committed_(false), 55 marking_deque_memory_committed_(false),
(...skipping 4673 matching lines...) Expand 10 before | Expand all | Expand 10 after
4728 SlotsBuffer* buffer = *buffer_address; 4729 SlotsBuffer* buffer = *buffer_address;
4729 while (buffer != NULL) { 4730 while (buffer != NULL) {
4730 SlotsBuffer* next_buffer = buffer->next(); 4731 SlotsBuffer* next_buffer = buffer->next();
4731 DeallocateBuffer(buffer); 4732 DeallocateBuffer(buffer);
4732 buffer = next_buffer; 4733 buffer = next_buffer;
4733 } 4734 }
4734 *buffer_address = NULL; 4735 *buffer_address = NULL;
4735 } 4736 }
4736 } 4737 }
4737 } // namespace v8::internal 4738 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/mark-compact.h ('k') | src/heap/mark-compact-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698