The NMT preinit allocator (used for os::malloc and friends before the VM is initialized) does not handle malloc errors, nor does it handle overflows due to large sizes (it uses malloc headers too). Both cases need to be handled.
However, we can keep matters very simple. No need to propagate errors up to the caller; we can just fatal out on errors here since in this phase, there is no alternative for failed allocations.
However, we can keep matters very simple. No need to propagate errors up to the caller; we can just fatal out on errors here since in this phase, there is no alternative for failed allocations.
- duplicates
-
JDK-8295881 NMT preinit allocations should error-check
-
- Closed
-