RFR: JDK-8326376: java -version failed with CONF=fastdebug -XX:InitialCodeCacheSize=1024K -XX:ReservedCodeCacheSize=1200k [v2]

Thomas Stuefe stuefe at openjdk.org
Thu Feb 22 06:33:19 UTC 2024


> Please review this fix of a regression brought by https://bugs.openjdk.org/browse/JDK-8318444. Thanks to @sunny868 for reporting this.
> 
> We bail out during compiler initialization of C2. The thread's ciEnv does not have a CompileTask associated in that case, and that's why we are faulting.
> 
> I tested the patch on Linux x64 and confirmed the fix. I also tested with a compiler memory ceiling and the crash option (see https://bugs.openjdk.org/browse/JDK-8318016) and confirmed that the hs-err file contains valid compile ids when we have a valid compile task.

Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:

  regression test, copyrights

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/17941/files
  - new: https://git.openjdk.org/jdk/pull/17941/files/375b647e..4a9023cb

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

  Stats: 14 lines in 3 files changed: 9 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/17941.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17941/head:pull/17941

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


More information about the hotspot-compiler-dev mailing list