@@ -213,24 +213,24 @@ size_t G1Allocator::used_in_alloc_regions() {
213213
214214
215215HeapWord* G1Allocator::par_allocate_during_gc (G1HeapRegionAttr dest,
216- size_t word_size ,
217- uint node_index ) {
216+ uint node_index ,
217+ size_t word_size ) {
218218 size_t temp = 0 ;
219- HeapWord* result = par_allocate_during_gc (dest, word_size, word_size, &temp, node_index );
219+ HeapWord* result = par_allocate_during_gc (dest, node_index, word_size, word_size, &temp);
220220 assert (result == nullptr || temp == word_size,
221221 " Requested " SIZE_FORMAT " words, but got " SIZE_FORMAT " at " PTR_FORMAT,
222222 word_size, temp, p2i (result));
223223 return result;
224224}
225225
226226HeapWord* G1Allocator::par_allocate_during_gc (G1HeapRegionAttr dest,
227+ uint node_index,
227228 size_t min_word_size,
228229 size_t desired_word_size,
229- size_t * actual_word_size,
230- uint node_index) {
230+ size_t * actual_word_size) {
231231 switch (dest.type ()) {
232232 case G1HeapRegionAttr::Young:
233- return survivor_attempt_allocation (min_word_size, desired_word_size, actual_word_size, node_index );
233+ return survivor_attempt_allocation (node_index, min_word_size, desired_word_size, actual_word_size);
234234 case G1HeapRegionAttr::Old:
235235 return old_attempt_allocation (min_word_size, desired_word_size, actual_word_size);
236236 default :
@@ -239,10 +239,10 @@ HeapWord* G1Allocator::par_allocate_during_gc(G1HeapRegionAttr dest,
239239 }
240240}
241241
242- HeapWord* G1Allocator::survivor_attempt_allocation (size_t min_word_size,
242+ HeapWord* G1Allocator::survivor_attempt_allocation (uint node_index,
243+ size_t min_word_size,
243244 size_t desired_word_size,
244- size_t * actual_word_size,
245- uint node_index) {
245+ size_t * actual_word_size) {
246246 assert (!_g1h->is_humongous (desired_word_size),
247247 " we should not be seeing humongous-size allocations in this path" );
248248
@@ -398,10 +398,10 @@ HeapWord* G1PLABAllocator::allocate_direct_or_new_plab(G1HeapRegionAttr dest,
398398
399399 size_t actual_plab_size = 0 ;
400400 HeapWord* buf = _allocator->par_allocate_during_gc (dest,
401+ node_index,
401402 required_in_plab,
402403 plab_word_size,
403- &actual_plab_size,
404- node_index);
404+ &actual_plab_size);
405405
406406 assert (buf == nullptr || ((actual_plab_size >= required_in_plab) && (actual_plab_size <= plab_word_size)),
407407 " Requested at minimum %zu, desired %zu words, but got %zu at " PTR_FORMAT,
@@ -420,7 +420,7 @@ HeapWord* G1PLABAllocator::allocate_direct_or_new_plab(G1HeapRegionAttr dest,
420420 *plab_refill_failed = true ;
421421 }
422422 // Try direct allocation.
423- HeapWord* result = _allocator->par_allocate_during_gc (dest, word_sz, node_index );
423+ HeapWord* result = _allocator->par_allocate_during_gc (dest, node_index, word_sz );
424424 if (result != nullptr ) {
425425 plab_data->_direct_allocated += word_sz;
426426 plab_data->_num_direct_allocations ++;
0 commit comments