JDK-8326376 : java -version failed with CONF=fastdebug -XX:InitialCodeCacheSize=1024K -XX:ReservedCodeCacheSize=1200k
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 23
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2024-02-21
  • Updated: 2024-02-29
  • Resolved: 2024-02-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 23
23 b12Fixed
Related Reports
Relates :  
Relates :  
Description
Command Line: java -XX:InitialCodeCacheSize=1024K -XX:ReservedCodeCacheSize=1200k -version

Info:
[0.097s][warning][codecache] CodeCache is full. Compiler has been disabled.
[0.097s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
OpenJDK 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
OpenJDK 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
CodeCache: size=1200Kb used=1042Kb max_used=1042Kb free=157Kb
 bounds [0x0000ffffa4d09000, 0x0000ffffa4e35000, 0x0000ffffa4e35000]
 total_blobs=587 nmethods=0 adapters=560
 compilation: disabled (not enough contiguous free space left)
              stopped_count=1, restarted_count=0
 full_count=1
OpenJDK 64-Bit Server VM warning: C1 initialization failed. Shutting down all compilers
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000ffffa5b3d818, pid=23384, tid=23398
#
# JRE version: OpenJDK Runtime Environment (23.0) (fastdebug build 23-internal-adhoc.sunguoyun.jdk-ls)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 23-internal-adhoc.sunguoyun.jdk-ls, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x8e6818]  CompilationFailureInfo::CompilationFailureInfo(char const*)+0xb0
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/sunguoyun/jdk-ls/hs_err_pid23384.log

Comments
Changeset: d695af89 Author: Thomas Stuefe <stuefe@openjdk.org> Date: 2024-02-22 17:45:34 +0000 URL: https://git.openjdk.org/jdk/commit/d695af89f6463591e870f631dc816c7729e33567
22-02-2024

ILW = Crash on compilation bailout, rare but easy to reproduce, disable compilation of affected method = HLM = P3
22-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/17941 Date: 2024-02-21 08:16:27 +0000
21-02-2024

fix the issue: https://github.com/sunny868/jdk/commit/849bb072339239d5e85825c8b90372fd55906aa0
21-02-2024

We bail out during compiler initialization of C2. The thread's ciEnv does not have a CompileTask associated in that case. See `CompileBroker::init_compiler_runtime()`
21-02-2024

Looks like a regression from JDK-8318444, [~stuefe].
21-02-2024