JDK-8042255 : make gc src file exclusion more automatic
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-05-01
  • Updated: 2015-01-21
  • Resolved: 2014-05-21
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 8 JDK 9
8u40Fixed 9 b15Fixed
Related Reports
Relates :  
Description
make/excludeSrc.make has lists of files that should be excluded based on compile-time options, notably  INCLUDE_ALL_GCS.  The INCLUDE_ALL_GCS list includes all files specific to the parallel, g1 and cms collectors, plus some others, and must be maintained manually, which is tedious and error prone.  It should be mostly automatic.
Comments
Change excludeSrc.make to exclude all the files in the gc_implementation/{cms,g1,parallelScavenge,parNew} directories by using the wildcard function. Also change the logic so that new files added to gc_implementation/shared are excluded by default; if a new file is needed for the minimal1 profile, then it must be added to the list of kept files in excludeSrc.make. This is expected to occur less often than adding a new file that should be excluded.
20-05-2014