JDK-8342826 : Improve performance of oopDesc::klass() after JDK-8305895
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-10-22
  • Updated: 2024-11-27
  • Resolved: 2024-11-15
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 24
24 b25Fixed
Related Reports
Blocks :  
Duplicate :  
Relates :  
Relates :  
Description
This is a follow-up to JDK-8305895. Performance testing has revealed some regressions on performance even when compact headers are turned off. For example, the RSA benchmark of SPECjvm was ~2% slower when compared to the baseline JDK. Those regressions seem to be caused by oopDesc::klass() now checking two global variables rather than previously only one. This potentially also harms GC iterators, which do a lot of Klass* accesses.
Comments
Changeset: 276251c4 Branch: master Author: Roman Kennke <rkennke@openjdk.org> Date: 2024-11-15 21:21:03 +0000 URL: https://git.openjdk.org/jdk/commit/276251c44a1a5b9dc36b27ecbaed37de62fc7558
15-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22020 Date: 2024-11-11 17:32:15 +0000
13-11-2024