RFR: 8295724: VirtualMachineError: Out of space in CodeCache for method handle intrinsic [v11]
Martin Doerr
mdoerr at openjdk.org
Wed Nov 23 20:56:22 UTC 2022
On Thu, 10 Nov 2022 20:09:42 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:
>> This proposal prevents the VM from terminating unexpectedly in some rare cases (see JBS issue). It allows using NonNMethod code space for method handle intrinsics which are needed urgently if the other code cache spaces are full. There are other options (see JBS issue), but this one appears to be the simplest one.
>
> Martin Doerr has updated the pull request incrementally with one additional commit since the last revision:
>
> We can't retrieve class loader oop during class unloading.
I think treating method handle intrinsics as adapter blobs has other drawbacks. At least, we would need to think about how much space to reserve in non-nmethod space. What if that one gets full?
I think https://bugs.openjdk.org/browse/JDK-8296336 is the best approach in the long term.
For now, this PR has worked stable for 2 weeks.
By the way, I was able to reproduce the issue by `jdk/bin/java -XX:ReservedCodeCacheSize=2496k -XX:+SegmentedCodeCache -version`. But, I'll take a look at the whitebox API and see if I can write a more deterministic test.
-------------
PR: https://git.openjdk.org/jdk/pull/10933
More information about the hotspot-compiler-dev
mailing list