RFR (S): 8238999: Remove MemRegion custom new/delete operator overloads

Thomas Schatzl thomas.schatzl at oracle.com
Fri Feb 14 17:06:10 UTC 2020


Hi,

On 14.02.20 17:12, Ioi Lam wrote:
> Hi Thomas,
> 
> Maybe we can fold this into a MemRegion::create(int size) function?
> 
> 1750   MemRegion* regions = NEW_C_HEAP_ARRAY(MemRegion, max, mtInternal);
> 1751   for (int i = 0; i < max; i++) {
> 1752     ::new (&regions[i]) MemRegion();
> 1753   }
> 

http://cr.openjdk.java.net/~tschatzl/8238999/webrev.0_to_1
http://cr.openjdk.java.net/~tschatzl/8238999/webrev.1

Thanks,
   Thomas :)



More information about the hotspot-gc-dev mailing list