< prev index next >

src/hotspot/share/gc/g1/g1Allocator.cpp

Print this page
rev 56944 : imported patch 8233702-function-to-clamp-value-to-range

*** 192,202 **** HeapRegion* hr = mutator_alloc_region(node_index)->get(); size_t max_tlab = _g1h->max_tlab_size() * wordSize; if (hr == NULL) { return max_tlab; } else { ! return MIN2(MAX2(hr->free(), (size_t) MinTLABSize), max_tlab); } } size_t G1Allocator::used_in_alloc_regions() { assert(Heap_lock->owner() != NULL, "Should be owned on this thread's behalf."); --- 192,202 ---- HeapRegion* hr = mutator_alloc_region(node_index)->get(); size_t max_tlab = _g1h->max_tlab_size() * wordSize; if (hr == NULL) { return max_tlab; } else { ! return clamp(hr->free(), MinTLABSize, max_tlab); } } size_t G1Allocator::used_in_alloc_regions() { assert(Heap_lock->owner() != NULL, "Should be owned on this thread's behalf.");
< prev index next >