RFR: 8348858: [leyden] Bump the default code buffer sizes to store more generated code

Aleksey Shipilev shade at openjdk.org
Tue Jan 28 14:00:23 UTC 2025


Due to current prototype limitation, we cannot yet store the generated code that has the expanded code buffer. I tried to address that directly, but I think relocations disagree with the whole thing, so this implementation limitation stays for a bit longer. I turned the bailout due to that cause from `info` into `warning`.

On `JavacBenchApp 50`, this causes us to lose 700 (!) C2 compiled methods from the SCC! We can dodge significant part of the hit by bumping the default code buffer sizes, and thus making buffers less likely to require resizing, and thus allowing to store more code in SCC. Also needs [JDK-8348855](https://bugs.openjdk.org/browse/JDK-8348855) from mainline to work well with G1. Current PR includes it, and I will upstream it separately first.

Additional testing:
 - [x] Linux x86_64 server fastdebug, `runtime/cds`

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

Commit messages:
 - Fix

Changes: https://git.openjdk.org/leyden/pull/28/files
  Webrev: https://webrevs.openjdk.org/?repo=leyden&pr=28&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8348858
  Stats: 28 lines in 5 files changed: 25 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/leyden/pull/28.diff
  Fetch: git fetch https://git.openjdk.org/leyden.git pull/28/head:pull/28

PR: https://git.openjdk.org/leyden/pull/28


More information about the leyden-dev mailing list