JDK-8173794 : [REDO] [AOT] Missing GC scan of _metaspace_got array containing Klass*
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2017-02-01
  • Updated: 2017-03-13
  • Resolved: 2017-02-07
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 b159Fixed
Related Reports
Blocks :  
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
[~kvn] Yes, but 8173699 is the fix you need.
02-02-2017

[~dean] Dean, do you want me re-apply JDK-8172990 changes after JDK-8173795 is fixed?
02-02-2017

JDK-8173019 backout original fix for JDK-8172990 because VM failed in deoptimization code.
02-02-2017