< prev index next >
src/share/vm/gc/shared/threadLocalAllocBuffer.inline.hpp
Print this page
rev 12854 : [mq]: gcinterface.patch
@@ -57,11 +57,11 @@
const size_t aligned_obj_size = align_object_size(obj_size);
// Compute the size for the new TLAB.
// The "last" tlab may be smaller to reduce fragmentation.
// unsafe_max_tlab_alloc is just a hint.
- const size_t available_size = Universe::heap()->unsafe_max_tlab_alloc(myThread()) /
+ const size_t available_size = GC::gc()->heap()->unsafe_max_tlab_alloc(myThread()) /
HeapWordSize;
size_t new_tlab_size = MIN3(available_size, desired_size() + aligned_obj_size, max_size());
// Make sure there's enough room for object and filler int[].
const size_t obj_plus_filler_size = aligned_obj_size + alignment_reserve();
< prev index next >