RFR: 8343805: RISC-V: JVM crashes on startup when disabling compressed instructions [v2]

Hamlin Li mli at openjdk.org
Tue Nov 12 10:14:07 UTC 2024


On Tue, 12 Nov 2024 09:43:34 GMT, Fei Yang <fyang at openjdk.org> wrote:

>> Seems to me it could trigger the similar issue unexpectedly, because for now G1 is still the default one, developers could only test default one before push their code?
>
> Yeah, I removed the `ZGC_ONLY` check as I think it doesn't seem necessary here. I simply did two jdk builds with and without the ZGC feature configured and compared the used compiler stubs from the log output. I witnessed no difference.

OK, I think for now it's safe, I only found below code in the stub generator related to UseZGC, and it's for final stubs:

    // The size of copy32_loop body increases significantly with ZGC GC barriers.
    // Need conditional far branches to reach a point beyond the loop in this case.
    bool is_far = UseZGC;

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21966#discussion_r1837827471


More information about the hotspot-compiler-dev mailing list