@@ -212,24 +212,24 @@ size_t G1Allocator::used_in_alloc_regions() {
212212
213213
214214HeapWord* G1Allocator::par_allocate_during_gc (G1HeapRegionAttr dest,
215- size_t word_size ,
216- uint node_index ) {
215+ uint node_index ,
216+ size_t word_size ) {
217217 size_t temp = 0 ;
218- HeapWord* result = par_allocate_during_gc (dest, word_size, word_size, &temp, node_index );
218+ HeapWord* result = par_allocate_during_gc (dest, node_index, word_size, word_size, &temp);
219219 assert (result == nullptr || temp == word_size,
220220 " Requested %zu words, but got %zu at " PTR_FORMAT,
221221 word_size, temp, p2i (result));
222222 return result;
223223}
224224
225225HeapWord* G1Allocator::par_allocate_during_gc (G1HeapRegionAttr dest,
226+ uint node_index,
226227 size_t min_word_size,
227228 size_t desired_word_size,
228- size_t * actual_word_size,
229- uint node_index) {
229+ size_t * actual_word_size) {
230230 switch (dest.type ()) {
231231 case G1HeapRegionAttr::Young:
232- return survivor_attempt_allocation (min_word_size, desired_word_size, actual_word_size, node_index );
232+ return survivor_attempt_allocation (node_index, min_word_size, desired_word_size, actual_word_size);
233233 case G1HeapRegionAttr::Old:
234234 return old_attempt_allocation (min_word_size, desired_word_size, actual_word_size);
235235 default :
@@ -238,10 +238,10 @@ HeapWord* G1Allocator::par_allocate_during_gc(G1HeapRegionAttr dest,
238238 }
239239}
240240
241- HeapWord* G1Allocator::survivor_attempt_allocation (size_t min_word_size,
241+ HeapWord* G1Allocator::survivor_attempt_allocation (uint node_index,
242+ size_t min_word_size,
242243 size_t desired_word_size,
243- size_t * actual_word_size,
244- uint node_index) {
244+ size_t * actual_word_size) {
245245 assert (!_g1h->is_humongous (desired_word_size),
246246 " we should not be seeing humongous-size allocations in this path" );
247247
@@ -397,10 +397,10 @@ HeapWord* G1PLABAllocator::allocate_direct_or_new_plab(G1HeapRegionAttr dest,
397397
398398 size_t actual_plab_size = 0 ;
399399 HeapWord* buf = _allocator->par_allocate_during_gc (dest,
400+ node_index,
400401 required_in_plab,
401402 plab_word_size,
402- &actual_plab_size,
403- node_index);
403+ &actual_plab_size);
404404
405405 assert (buf == nullptr || ((actual_plab_size >= required_in_plab) && (actual_plab_size <= plab_word_size)),
406406 " Requested at minimum %zu, desired %zu words, but got %zu at " PTR_FORMAT,
@@ -419,7 +419,7 @@ HeapWord* G1PLABAllocator::allocate_direct_or_new_plab(G1HeapRegionAttr dest,
419419 *plab_refill_failed = true ;
420420 }
421421 // Try direct allocation.
422- HeapWord* result = _allocator->par_allocate_during_gc (dest, word_sz, node_index );
422+ HeapWord* result = _allocator->par_allocate_during_gc (dest, node_index, word_sz );
423423 if (result != nullptr ) {
424424 plab_data->_direct_allocated += word_sz;
425425 plab_data->_num_direct_allocations ++;
0 commit comments