@@ -364,31 +364,3 @@ size_t G1GCAllocRegion::retire(bool fill_up) {
364
364
}
365
365
return end_waste;
366
366
}
367
-
368
- HeapRegion* OldGCAllocRegion::release () {
369
- HeapRegion* cur = get ();
370
- if (cur != NULL ) {
371
- // Determine how far we are from the next card boundary. If it is smaller than
372
- // the minimum object size we can allocate into, expand into the next card.
373
- HeapWord* top = cur->top ();
374
- HeapWord* aligned_top = align_up (top, BOTConstants::card_size ());
375
-
376
- size_t to_allocate_words = pointer_delta (aligned_top, top, HeapWordSize);
377
-
378
- if (to_allocate_words != 0 ) {
379
- // We are not at a card boundary. Fill up, possibly into the next, taking the
380
- // end of the region and the minimum object size into account.
381
- to_allocate_words = MIN2 (pointer_delta (cur->end (), cur->top (), HeapWordSize),
382
- MAX2 (to_allocate_words, G1CollectedHeap::min_fill_size ()));
383
-
384
- // Skip allocation if there is not enough space to allocate even the smallest
385
- // possible object. In this case this region will not be retained, so the
386
- // original problem cannot occur.
387
- if (to_allocate_words >= G1CollectedHeap::min_fill_size ()) {
388
- HeapWord* dummy = attempt_allocation (to_allocate_words);
389
- cur->fill_with_dummy_object (dummy, to_allocate_words);
390
- }
391
- }
392
- }
393
- return G1AllocRegion::release ();
394
- }
0 commit comments