RFR: 8364558: Test compiler/startup/StartupOutput.java failed with native OOM: CodeCache: no room for StubRoutines
Vladimir Kozlov
kvn at openjdk.org
Tue Aug 5 23:22:02 UTC 2025
On Tue, 5 Aug 2025 13:21:01 GMT, Andrew Dinn <adinn at openjdk.org> wrote:
> This PR avoids bringing down the VM when a code cache allocation for the stubgen compiler blob is requested by the compiler thread and fails because the code cache is full. Instead the VM is allowed to carry on with the compiler disabled.
src/hotspot/share/runtime/stubRoutines.cpp line 192:
> 190: assert(blob_id == BlobId::stubgen_compiler_id, "sanity");
> 191: assert(DelayCompilerStubsGeneration, "sanity");
> 192: log_warning(stubs)("Ignoring failed allocation of blob %s under compiler thread", StubInfo::name(blob_id));
I think it should match other stubs output, for example:
[0.001s][info][stubs] StubRoutines (preuniverse stubs) not generated
May be:
[0.001s][warning][stubs] StubRoutines (compiler stubs) not generated: no space left in CodeCache
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26642#discussion_r2255523961
More information about the hotspot-dev
mailing list