JDK-8283641 : Large value for CompileThresholdScaling causes assert
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,17,18,19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-03-24
  • Updated: 2022-05-19
  • Resolved: 2022-03-24
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 11 JDK 17 JDK 18 JDK 19
11.0.16-oracleFixed 17.0.4-oracleFixed 18.0.2Fixed 19 b16Fixed
Related Reports
Blocks :  
Blocks :  
Relates :  
Description
$ java -XX:CompileThresholdScaling=12345678901234567890.0 -version
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/powerOfTwo.hpp:54
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/jdk/open/src/hotspot/share/utilities/powerOfTwo.hpp:54), pid=4147940, tid=4147941
#  assert(value > T(0)) failed: value must be > 0
#
# JRE version:  (19.0) (fastdebug build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 19-internal-adhoc.iklam, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)

Comments
Fix request [11u] I backport this for parity with 11.0.16-oracle. Low risk, only a simple change handling overflow when casting. Clean backport. SAP nightly testing passed.
07-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/1016 Date: 2022-04-06 13:35:26 +0000
06-04-2022

Fix Request (17u): Should get backported for parity with 17.0.4-oracle. Applies cleanly. Nightly tests have passed.
31-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/316 Date: 2022-03-30 12:00:46 +0000
30-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk18u/pull/73 Date: 2022-03-29 15:55:45 +0000
29-03-2022

Fix Request (JDK 18u) Fixes an assert due to an unexpected flag value. The fix is low risk and applies cleanly. Already tested and about to be backported to Oracle JDK 17u. Tier 1-3 testing is running for JDK 18u.
29-03-2022

Changeset: c1048021 Author: Ioi Lam <iklam@openjdk.org> Date: 2022-03-24 21:42:35 +0000 URL: https://git.openjdk.java.net/jdk/commit/c1048021fe57b78bb1f300b977588e1a93a284b6
24-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7944 Date: 2022-03-24 16:34:07 +0000
24-03-2022