comparison src/hotspot/share/gc/z/zHeap.cpp @ 50875:2217b2fc29ea

8205993: ZGC: Fix typos and incorrect indentations Reviewed-by: stefank
author pliden
date Thu, 28 Jun 2018 12:14:37 +0200
parents d283a214f42b
children 270b11dadbaf
comparison
equal deleted inserted replaced
2:fad748134f3a 3:e33b0e79c87e
48 #include "runtime/safepoint.hpp" 48 #include "runtime/safepoint.hpp"
49 #include "runtime/thread.hpp" 49 #include "runtime/thread.hpp"
50 #include "utilities/align.hpp" 50 #include "utilities/align.hpp"
51 #include "utilities/debug.hpp" 51 #include "utilities/debug.hpp"
52 52
53 static const ZStatSampler ZSamplerHeapUsedBeforeMark("Memory", "Heap Used Before Mark", ZStatUnitBytes); 53 static const ZStatSampler ZSamplerHeapUsedBeforeMark("Memory", "Heap Used Before Mark", ZStatUnitBytes);
54 static const ZStatSampler ZSamplerHeapUsedAfterMark("Memory", "Heap Used After Mark", ZStatUnitBytes); 54 static const ZStatSampler ZSamplerHeapUsedAfterMark("Memory", "Heap Used After Mark", ZStatUnitBytes);
55 static const ZStatSampler ZSamplerHeapUsedBeforeRelocation("Memory", "Heap Used Before Relocation", ZStatUnitBytes); 55 static const ZStatSampler ZSamplerHeapUsedBeforeRelocation("Memory", "Heap Used Before Relocation", ZStatUnitBytes);
56 static const ZStatSampler ZSamplerHeapUsedAfterRelocation("Memory", "Heap Used After Relocation", ZStatUnitBytes); 56 static const ZStatSampler ZSamplerHeapUsedAfterRelocation("Memory", "Heap Used After Relocation", ZStatUnitBytes);
57 static const ZStatCounter ZCounterUndoPageAllocation("Memory", "Undo Page Allocation", ZStatUnitOpsPerSecond); 57 static const ZStatCounter ZCounterUndoPageAllocation("Memory", "Undo Page Allocation", ZStatUnitOpsPerSecond);
58 static const ZStatCounter ZCounterOutOfMemory("Memory", "Out Of Memory", ZStatUnitOpsPerSecond); 58 static const ZStatCounter ZCounterOutOfMemory("Memory", "Out Of Memory", ZStatUnitOpsPerSecond);
59 59
60 ZHeap* ZHeap::_heap = NULL; 60 ZHeap* ZHeap::_heap = NULL;
61 61
62 ZHeap::ZHeap() : 62 ZHeap::ZHeap() :
63 _workers(), 63 _workers(),
153 if (size < MinTLABSize) { 153 if (size < MinTLABSize) {
154 // The remaining space in the allocator is not enough to 154 // The remaining space in the allocator is not enough to
155 // fit the smallest possible TLAB. This means that the next 155 // fit the smallest possible TLAB. This means that the next
156 // TLAB allocation will force the allocator to get a new 156 // TLAB allocation will force the allocator to get a new
157 // backing page anyway, which in turn means that we can then 157 // backing page anyway, which in turn means that we can then
158 // fit the larges possible TLAB. 158 // fit the largest possible TLAB.
159 size = max_tlab_size(); 159 size = max_tlab_size();
160 } 160 }
161 161
162 return MIN2(size, max_tlab_size()); 162 return MIN2(size, max_tlab_size());
163 } 163 }