JDK-8172990 : [AOT] Missing GC scan of _metaspace_got array containing Klass*
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2017-01-18
  • Updated: 2017-02-09
  • Resolved: 2017-01-18
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 JDK 9
10Fixed 9 b156Fixed
Related Reports
Cloners :  
Relates :  
Description
The code which scans _metaspace_got array is commented out:

#if 0
  // With the marking above, this call doesn't seem to be needed
   got_metadata_do(f);

Unfortunately called AOTCompiledMethod::metadata_do() does not iterate over all Klass* which could be referenced by AOT code by accessing  _metaspace_got array. 
Comments
AOTCompiledMethod::metadata_do() scans only metadata referenced in debug info and call stubs.
18-01-2017