Integrated: 8303577: [JVMCI] OOME causes crash while translating exceptions
Doug Simon
dnsimon at openjdk.org
Mon Mar 6 16:14:02 UTC 2023
The message from this sender included one or more files
which could not be scanned for virus detection; do not
open these files unless you are certain of the sender's intent.
----------------------------------------------------------------------
On Fri, 3 Mar 2023 15:40:01 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
> JDK-8297431 added code for special handling of OutOfMemoryError when translating an exception between libjvmci and HotSpot[1].
> Unfortunately, this code was deleted by JDK-8298099 when moving the exception translation mechanism to VMSupport[2].
> This causes the VM to crash when an OOME occurs while translating an exception from HotSpot to libjvmci.
> This PR revives the deleted code.
>
> This bug was found by running `test/jdk/java/util/concurrent/locks/Lock/OOMEInAQS.java` on libgraal. The fix now makes the test pass.
>
> Note that the code modified in `src/java.base/share/classes/jdk/internal/vm/VMSupport.java` is JVMCI specific and was original added by [JDK-8298099](https://git.openjdk.org/jdk/pull/11513).
>
> [1] https://github.com/openjdk/jdk/commit/952e10055135613e8ea2b818a4f35842936f5633#diff-4d3a3b7e7e12e1d5b4cf3e4677d9e0de5e9df3bbf1bbfa0d8d43d12098d67dc4R222-R234
> [2] https://github.com/openjdk/jdk/commit/8b69a2e434ad2fa3369079622b57afb973d5bd9a#diff-7292551772c27b7152a3333f03cbbad90a897c5e37c6a97d4026be835e6d8fe1R121-R125
This pull request has now been integrated.
Changeset: cac81ddc
Author: Doug Simon <dnsimon at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/cac81ddc9259168a5b12c290ae2ce7db25a729fc
Stats: 31 lines in 5 files changed: 22 ins; 0 del; 9 mod
8303577: [JVMCI] OOME causes crash while translating exceptions
Reviewed-by: kvn, never
-------------
PR: https://git.openjdk.org/jdk/pull/12857
More information about the core-libs-dev
mailing list