RFR: 8295724: VirtualMachineError: Out of space in CodeCache for method handle intrinsic [v2]

Dean Long dlong at openjdk.org
Thu Nov 3 19:20:26 UTC 2022


On Wed, 2 Nov 2022 22:28:40 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:
> 
>   Add assertions to ensure no immediate oops in MH intrinsics.

Those are reasonable suggestions.  Sounds like a plan.  For this PR, could you refactor the oops checking logic into its own method?  Then would it make sense to add checks for relocations that use metadata?  Some types of call sites are resolved lazily, so they could be using metadata without that being reflected in the oops.

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

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


More information about the hotspot-compiler-dev mailing list