JDK-8210391 : Add locking in HeapShared::initialize_from_archived_subgraph
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 12
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2018-09-04
  • Updated: 2021-01-07
  • Resolved: 2021-01-06
Related Reports
Relates :  
Description
HeapShared::initialize_from_archived_subgraph(Klass*) is triggered to initialize all classes for objects enclosed in the subgraph(s) (related to the requesting Klass) and install the subgraph(s) back to the requesting Klass's entry fields. Currently all archived subgraphs are initialized and installed during JVM bootstrapping at runtime, no locking is done. 

In the future, with new subgraphs are added to the archive, we probably need to add locking in HeapShared::initialize_from_archived_subgraph(Klass*) to avoid any potential race condition.
Comments
Runtime Triage: This is not on our current list of priorities. We will consider this feature if we receive additional customer requirements.
06-01-2021