RFR: 8295724: VirtualMachineError: Out of space in CodeCache for method handle intrinsic [v3]
Martin Doerr
mdoerr at openjdk.org
Thu Nov 3 21:40:54 UTC 2022
On Thu, 3 Nov 2022 21:15:39 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:
>
> Refactor oop checks. Add metadata check.
Filed 2 issues:
https://bugs.openjdk.org/browse/JDK-8296336
https://bugs.openjdk.org/browse/JDK-8296334
Feel free to modify them.
I've added a check for metadata. I don't think we need to check for metadata relocations because the oop recorder always records all metadata pointers. We never iterate over the code to find metadata AFAIK (except for patching purposes, but the metadata is duplicated in this case, not in the code only). Please take a look.
-------------
PR: https://git.openjdk.org/jdk/pull/10933
More information about the hotspot-compiler-dev
mailing list