JDK-8186042 : Optimize OopMapCache lookup
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-08-09
  • Updated: 2024-07-18
  • Resolved: 2017-08-28
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 10
10 b22Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Description
The OopMapCache::lookup function that returns the oopMap for a specific (Method, bci) takes out a Mutex to lookup for each entry on the stack.

The OopMapCache holds bitmaps to indicate where oops are in the locals and expression stack for a method at bci for interpreter frames found on the stack during GC.

Lock free access speeds up GC root processing for thread stacks. 
Comments
URL: http://hg.openjdk.java.net/jdk10/jdk10/hotspot/rev/c5c6aa319333 User: jwilhelm Date: 2017-08-29 22:57:33 +0000
29-08-2017

URL: http://hg.openjdk.java.net/jdk10/hs/hotspot/rev/c5c6aa319333 User: coleenp Date: 2017-08-28 16:16:37 +0000
28-08-2017

For testing, I changed the TraceOopMapGeneration option to use logging, so would like to remove TraceOopMapGeneration option since I have to wonder if I'm the only one that's ever used it.
10-08-2017