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

Side by Side Diff: third_party/WebKit/Source/platform/heap/HeapCompact.h

Issue 2841383002: Reenable heap compaction after r466956 (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium 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 #ifndef HeapCompact_h 5 #ifndef HeapCompact_h
6 #define HeapCompact_h 6 #define HeapCompact_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/heap/BlinkGC.h" 9 #include "platform/heap/BlinkGC.h"
10 #include "platform/wtf/DataLog.h" 10 #include "platform/wtf/DataLog.h"
11 #include "platform/wtf/PtrUtil.h" 11 #include "platform/wtf/PtrUtil.h"
12 #include "platform/wtf/ThreadingPrimitives.h" 12 #include "platform/wtf/ThreadingPrimitives.h"
13 #include "platform/wtf/Vector.h" 13 #include "platform/wtf/Vector.h"
14 14
15 #include <bitset> 15 #include <bitset>
16 #include <utility> 16 #include <utility>
17 17
18 // Compaction-specific debug switches: 18 // Compaction-specific debug switches:
19 19
20 // Set to 0 to prevent compaction GCs, disabling the heap compaction feature. 20 // Set to 0 to prevent compaction GCs, disabling the heap compaction feature.
21 #define ENABLE_HEAP_COMPACTION 0 21 #define ENABLE_HEAP_COMPACTION 1
22 22
23 // Emit debug info during compaction. 23 // Emit debug info during compaction.
24 #define DEBUG_HEAP_COMPACTION 0 24 #define DEBUG_HEAP_COMPACTION 0
25 25
26 // Emit stats on freelist occupancy. 26 // Emit stats on freelist occupancy.
27 // 0 - disabled, 1 - minimal, 2 - verbose. 27 // 0 - disabled, 1 - minimal, 2 - verbose.
28 #define DEBUG_HEAP_FREELIST 0 28 #define DEBUG_HEAP_FREELIST 0
29 29
30 // Log the amount of time spent compacting. 30 // Log the amount of time spent compacting.
31 #define DEBUG_LOG_HEAP_COMPACTION_RUNNING_TIME 0 31 #define DEBUG_LOG_HEAP_COMPACTION_RUNNING_TIME 0
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 #if DEBUG_HEAP_FREELIST == 2 184 #if DEBUG_HEAP_FREELIST == 2
185 #define LOG_HEAP_FREELIST_VERBOSE(msg, ...) \ 185 #define LOG_HEAP_FREELIST_VERBOSE(msg, ...) \
186 LOG_HEAP_COMPACTION_INTERNAL(msg, ##__VA_ARGS__) 186 LOG_HEAP_COMPACTION_INTERNAL(msg, ##__VA_ARGS__)
187 #else 187 #else
188 #define LOG_HEAP_FREELIST_VERBOSE(msg, ...) \ 188 #define LOG_HEAP_FREELIST_VERBOSE(msg, ...) \
189 do { \ 189 do { \
190 } while (0) 190 } while (0)
191 #endif 191 #endif
192 192
193 #endif // HeapCompact_h 193 #endif // HeapCompact_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698