JDK-8366841 : [lworld] Objects.equals without identity comparison
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2025-09-03
  • Updated: 2025-12-17
  • Resolved: 2025-09-08
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.
Other
repo-valhallaFixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
java.util.Objects.equals use of identity comparison has a negative performance implact with Valhalla.  `==` aka `acmp` has high overhead.

For Valhalla, when --enable-preview is true, avoid acmp.

Additional performance comparisons may suggest better/alternative heuristics.
Comments
A pull request was submitted for review. Branch: lworld URL: https://git.openjdk.org/valhalla/pull/1551 Date: 2025-09-06 16:42:42 +0000
06-09-2025