RFR: 8344068: Windows x86-64: Out of CodeBuffer space when generating final stubs

Vladimir Kozlov kvn at openjdk.org
Tue Dec 3 17:29:45 UTC 2024


On Tue, 3 Dec 2024 17:21:54 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> I've had a look at the difference between an Intel AVX-512 machine (which does run out of memory) and an AMD machine, and it seems to be that the AVX-512 stubs required by Windows really do take up a lot of space. This should be sufficient.
>
> src/hotspot/cpu/x86/stubRoutines_x86.hpp line 41:
> 
>> 39:   // Windows have more code to save/restore registers
>> 40:   _compiler_stubs_code_size     = 20000 LP64_ONLY(+47000) WINDOWS_ONLY(+2000),
>> 41:   _final_stubs_code_size        = 10000 LP64_ONLY(+20000) WINDOWS_ONLY(+22000) ZGC_ONLY(+20000)
> 
> Do you know which particular stubs cause out of space?
> Most stubs are generated for `compiler` intrinsics. I would assume that they are causing the issue and not `final` 6 stubs.

Scratch that. I see call stack in the bug report. It is indeed final stubs for upcall stub when ZGC is enabled.
Should we increase ZGC_ONLY(+20000) value instead?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22516#discussion_r1868130048


More information about the hotspot-compiler-dev mailing list