Integrated: 8343805: RISC-V: JVM crashes on startup when disabling compressed instructions

Fei Yang fyang at openjdk.org
Tue Nov 12 15:31:11 UTC 2024


On Fri, 8 Nov 2024 01:54:55 GMT, Fei Yang <fyang at openjdk.org> wrote:

> Hello, please review this trivial change.
> 
> The reason of the crash is that we will use more space for compiler stubs during stubRoutines generation when compressed instructions is disabled expecially when the CPU is not equipped with the RISC-V B extension. So this simply increases the reserved size of compiler stubs for this CPU platform. After this change, we have (without B extension):
> 
> 
> $ java -Xlog:stubs -XX:-UseRVC -version
> [0.010s][info][stubs] StubRoutines (initial stubs)       [0x0000003f8f3cf340, 0x0000003f8f3d1cd0] used: 604, free: 10036
> [0.117s][info][stubs] StubRoutines (continuation stubs)  [0x0000003f8f3d25c0, 0x0000003f8f3d3010] used: 628, free: 2012
> [0.153s][info][stubs] StubRoutines (final stubs)         [0x0000003f8f4025c0, 0x0000003f8f409d70] used: 9380, free: 21260
> [0.199s][info][stubs] StubRoutines (compiler stubs)      [0x0000003f8f4d7c40, 0x0000003f8f4e3180] used: 38924, free: 7476
> 
> 
> (PS: Same issue also triggers when building without ZGC (`--disable-jvm-feature-zgc`))

This pull request has now been integrated.

Changeset: 2989d873
Author:    Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/2989d8734c70e1db87d2a708719fd2d966903a93
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8343805: RISC-V: JVM crashes on startup when disabling compressed instructions

Reviewed-by: mli

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

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


More information about the hotspot-compiler-dev mailing list