Integrated: JDK-8292769: [JVMCI] OutOfMemoryError thrown when attaching the libgraal isolate causes HotSpot to crash.

Tomáš Zezula duke at openjdk.org
Mon Aug 29 15:49:36 UTC 2022


On Tue, 23 Aug 2022 12:03:02 GMT, Tomáš Zezula <duke at openjdk.org> wrote:

> Fixes a virtual machine crash when the libgraal isolate does not have enough heap memory available and its memory is exhausted. The [crash](https://bugs.openjdk.org/secure/attachment/100520/hs_err_pid679001.log) is caused by an unhandled `OutOfMemoryError` thrown in the isolate's `AttachCurrentThread`.
> The isolate's `AttachCurrentThread` is [fixed](https://github.com/oracle/graal/commit/62ede96fd3ddc9e5ddb4804ed369f61cfa0c0a21#diff-9eedff7eb9fceec5f37c48cf089ff8e24103279e1384a2c0fa1fc9446b5dc438)  to report an `OutOfMemoryError` using a `JNI_ENOMEM` result. This pull request aborts a compilation when `AttachCurrentThread` fails with `JNI_ENOMEM`.

This pull request has now been integrated.

Changeset: 30def49c
Author:    Tomas Zezula <tzezula at openjdk.org>
Committer: Doug Simon <dnsimon at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/30def49c7286e2a6c2585bc85084b003eec4543a
Stats:     43 lines in 3 files changed: 24 ins; 5 del; 14 mod

8292769: [JVMCI] OutOfMemoryError thrown when attaching the libgraal isolate causes HotSpot to crash.

Reviewed-by: dnsimon, never

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

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


More information about the hotspot-compiler-dev mailing list