JDK-8330181 : Move PcDesc cache from nmethod header
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-04-12
  • Updated: 2024-04-29
  • Resolved: 2024-04-25
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 masterFixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
Currently PcDescCache  (32 bytes: PcDesc* _pc_descs[4]) is allocated in `nmethod` header.

Investigate possibility to move it to C heap similar to ExceptionCache to reduce size of `nmethod` header and remove WXWrite transition when we update the cache in `PcDescCache::add_pc_desc()`

Main concern is performance because we will add one pointer load to each query.

Comments
Changeset: b3bcc494 Author: Vladimir Kozlov <kvn@openjdk.org> Date: 2024-04-25 22:46:11 +0000 URL: https://git.openjdk.org/jdk/commit/b3bcc49491b8f8ad337eb4c06201a5468e5c1159
25-04-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/18895 Date: 2024-04-22 16:54:40 +0000
22-04-2024