comparison src/share/vm/gc_implementation/shared/parGCAllocBuffer.hpp @ 18041:52b4284cb496

Merge with jdk8u20-b26
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 16:02:50 +0200
parents 89152779163c cfd4aac53239
children 7848fc12602b
comparison
equal deleted inserted replaced
17606:45d7b2c7029d 18041:52b4284cb496
156 } 156 }
157 157
158 // Fills in the unallocated portion of the buffer with a garbage object. 158 // Fills in the unallocated portion of the buffer with a garbage object.
159 // If "end_of_gc" is TRUE, is after the last use in the GC. IF "retain" 159 // If "end_of_gc" is TRUE, is after the last use in the GC. IF "retain"
160 // is true, attempt to re-use the unused portion in the next GC. 160 // is true, attempt to re-use the unused portion in the next GC.
161 virtual void retire(bool end_of_gc, bool retain); 161 void retire(bool end_of_gc, bool retain);
162 162
163 void print() PRODUCT_RETURN; 163 void print() PRODUCT_RETURN;
164 }; 164 };
165 165
166 // PLAB stats book-keeping 166 // PLAB stats book-keeping
179 _wasted(0), 179 _wasted(0),
180 _unused(0), 180 _unused(0),
181 _used(0), 181 _used(0),
182 _desired_plab_sz(desired_plab_sz_), 182 _desired_plab_sz(desired_plab_sz_),
183 _filter(wt) 183 _filter(wt)
184 { 184 { }
185 size_t min_sz = min_size();
186 size_t max_sz = max_size();
187 size_t aligned_min_sz = align_object_size(min_sz);
188 size_t aligned_max_sz = align_object_size(max_sz);
189 assert(min_sz <= aligned_min_sz && max_sz >= aligned_max_sz &&
190 min_sz <= max_sz,
191 "PLAB clipping computation in adjust_desired_plab_sz()"
192 " may be incorrect");
193 }
194 185
195 static const size_t min_size() { 186 static const size_t min_size() {
196 return ParGCAllocBuffer::min_size(); 187 return ParGCAllocBuffer::min_size();
197 } 188 }
198 189