JDK-8334560 : [PPC64]: postalloc_expand_java_dynamic_call_sched does not copy all fields
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,21,22,23,24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: ppc
  • Submitted: 2024-06-19
  • Updated: 2024-10-24
  • Resolved: 2024-06-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 23 JDK 24
23.0.2Fixed 24 b04Fixed
Related Reports
Relates :  
Relates :  
Description
postalloc_expand_java_dynamic_call_sched should copy also MachSafePointNode::_has_ea_local_in_scope

If the information is not propagated then it can happen that C2 optimizations based on escape analysis are not reverted when an object reference escapes because an JVMTI agent reads it.
Comments
Fix request (23u) I would like to do the backport to fix the issue described above. The included regression test demonstrates a variant of the issue. It fails without the fix. The backport applies cleanly. The fix passed our CI testing: JTReg tests: tier1-4 of hotspot and jdk. All of Langtools and jaxp. JCK, Renaissance Suite, and SAP specific tests. Testing was done with fastdebug builds on the main platforms and also on Linux/PPC64le. Risk is low. The change affects only PPC64 and the field that is changed is only read in the JVMTI implementation. Also the change includes a regression test. Thanks, Richard.
22-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk23u/pull/190 Date: 2024-10-17 07:31:16 +0000
22-10-2024

Changeset: 13dce296 Author: Richard Reingruber <rrich@openjdk.org> Date: 2024-06-24 06:33:39 +0000 URL: https://git.openjdk.org/jdk/commit/13dce296fc3924b269757ce1279c57afe18faeeb
24-06-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19789 Date: 2024-06-19 10:31:27 +0000
21-06-2024