JDK-8332498 : [aarch64, x86] improving OpToAssembly output for partialSubtypeCheckConstSuper Instruct
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-05-19
  • Updated: 2024-05-27
  • Resolved: 2024-05-21
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 b24Fixed
Related Reports
Relates :  
Description
Fix for aarch64, similar change will be required for x86 as well. 

amitkumar@Amits-MacBook-Pro jdk % git diff 
diff --git a/src/hotspot/cpu/aarch64/aarch64.ad b/src/hotspot/cpu/aarch64/aarch64.ad
index a82a1b396e0..1bf6159e67d 100644
--- a/src/hotspot/cpu/aarch64/aarch64.ad
+++ b/src/hotspot/cpu/aarch64/aarch64.ad
@@ -16230,7 +16230,7 @@ instruct partialSubtypeCheckConstSuper(iRegP_R4 sub, iRegP_R0 super_reg, immP su
   effect(KILL cr, TEMP tempR1, TEMP tempR2, TEMP tempR3, TEMP vtemp);
 
   ins_cost(700);  // smaller than the next version
-  format %{ "partialSubtypeCheck $result, $sub, super" %}
+  format %{ "partialSubtypeCheck $result, $sub, $super_reg, $super_con" %}
 
   ins_encode %{
     bool success = false;

Comments
Changeset: 7ffc9997 Author: Amit Kumar <amitkumar@openjdk.org> Date: 2024-05-21 08:17:06 +0000 URL: https://git.openjdk.org/jdk/commit/7ffc9997bd4a93cefe30f672a5f0e9c49215d2c7
21-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19295 Date: 2024-05-19 15:36:15 +0000
19-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19294 Date: 2024-05-19 15:23:56 +0000
19-05-2024