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

Fei Yang fyang at openjdk.org
Tue Nov 12 06:44:26 UTC 2024


> 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

Fei Yang has updated the pull request incrementally with one additional commit since the last revision:

  Add more space for hardware platforms with vector extension

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/21966/files
  - new: https://git.openjdk.org/jdk/pull/21966/files/be8bff6d..b24ce03d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=21966&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21966&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/21966.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21966/head:pull/21966

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


More information about the hotspot-compiler-dev mailing list