< prev index next >

src/hotspot/share/gc/shared/genCollectedHeap.cpp

Print this page
rev 49851 : imported patch 8191471-g1-varying-tlab-allocation

*** 1143,1155 **** return _young_gen->unsafe_max_tlab_alloc(); } return 0; } ! HeapWord* GenCollectedHeap::allocate_new_tlab(size_t size) { bool gc_overhead_limit_was_exceeded; ! return mem_allocate_work(size /* size */, true /* is_tlab */, &gc_overhead_limit_was_exceeded); } // Requires "*prev_ptr" to be non-NULL. Deletes and a block of minimal size --- 1143,1158 ---- return _young_gen->unsafe_max_tlab_alloc(); } return 0; } ! HeapWord* GenCollectedHeap::allocate_new_tlab(size_t min_word_size, ! size_t desired_word_size, ! size_t* actual_word_size) { bool gc_overhead_limit_was_exceeded; ! *actual_word_size = desired_word_size; ! return mem_allocate_work(desired_word_size /* size */, true /* is_tlab */, &gc_overhead_limit_was_exceeded); } // Requires "*prev_ptr" to be non-NULL. Deletes and a block of minimal size
< prev index next >