Integrated: JDK-8295889: NMT preinit code does not handle allocation errors

Thomas Stuefe stuefe at openjdk.org
Wed Oct 26 08:39:03 UTC 2022


On Tue, 25 Oct 2022 15:18:05 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: cf121df1
Author:    Thomas Stuefe <stuefe at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/cf121df17e60df61a1b8825724c0d735f11e73f6
Stats:     34 lines in 2 files changed: 34 ins; 0 del; 0 mod

8295889: NMT preinit code does not handle allocation errors

Reviewed-by: dholmes, mbaesken

-------------

PR: https://git.openjdk.org/jdk/pull/10855


More information about the hotspot-runtime-dev mailing list