RFR (S): 8238999: Remove MemRegion custom new/delete operator overloads
thomas.schatzl at oracle.com
Fri Feb 14 15:05:22 UTC 2020
can I have reviews for this small change to the MemRegion class to
remove unnecessary new/delete overloads from MemRegion.
They return NULL if there is not enough memory. This is uncommon to do
in Hotspot code.
All uses in the code either checks whether the allocation is non-NULL
and then terminates the VM, or will just crash too.
It is easier to just replace the new calls with NEW_C_HEAP_ARRAY
allocations and do the initialization manually.
cc'ing runtime because Coleen added the new operator for working around
a Metaspace issue in JDK-8021954 years ago.
More information about the hotspot-gc-dev