JDK-8300040 : TypeOopPtr::make_from_klass_common calls itself with args in wrong order
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-01-12
  • Updated: 2023-01-13
  • Resolved: 2023-01-13
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 21
21 masterFixed
Related Reports
Relates :  
Description
It appears that TypeOopPtr::make_from_klass_common call itself with "klass_change" and "try_for_exact" arguments swapped:

https://github.com/openjdk/jdk/blob/05a0a710313917fe7124ff43fe9c9af1d649bcac/src/hotspot/share/opto/type.cpp#L3581


Comments
Changeset: 640eff64 Author: Tobias Hartmann <thartmann@openjdk.org> Date: 2023-01-13 07:16:53 +0000 URL: https://git.openjdk.org/jdk/commit/640eff64d296cc34b7b3fd50dc7075ffe23a642f
13-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11966 Date: 2023-01-12 13:30:54 +0000
12-01-2023

ILW = Swapped arguments in C2 method might lead to incorrect compilation, no issue observed, no workaround = MLH = P4
12-01-2023