RFR: 8303577: [JVMCI] OOME causes crash while translating exceptions
Vladimir Kozlov
kvn at openjdk.org
Fri Mar 3 18:08:37 UTC 2023
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.
>
> [1] https://github.com/openjdk/jdk/commit/952e10055135613e8ea2b818a4f35842936f5633#diff-4d3a3b7e7e12e1d5b4cf3e4677d9e0de5e9df3bbf1bbfa0d8d43d12098d67dc4R222-R234
> [2] https://github.com/openjdk/jdk/commit/8b69a2e434ad2fa3369079622b57afb973d5bd9a#diff-7292551772c27b7152a3333f03cbbad90a897c5e37c6a97d4026be835e6d8fe1R121-R125
Good.
-------------
Marked as reviewed by kvn (Reviewer).
PR: https://git.openjdk.org/jdk/pull/12857
More information about the core-libs-dev
mailing list