For non-product builds we define global new/delete operators which shut down the VM if called. The rational behind this is that the these global operators shouldn't be used in HotSpot.
Unfortunately, the signature of some of these operators doesn't conform to the C++ standard which confuses some C++ compilers.
Also, the asserts in the operators should be changed to guarantees because the code may also be active in not-product (aka. 'optimized') builds.
Unfortunately, the signature of some of these operators doesn't conform to the C++ standard which confuses some C++ compilers.
Also, the asserts in the operators should be changed to guarantees because the code may also be active in not-product (aka. 'optimized') builds.