JDK-8139200 : Eliminate G1ParClosureSuper::_worker_id
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-10-08
  • Updated: 2015-11-12
  • Resolved: 2015-10-16
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 9
9 b89Fixed
Related Reports
Duplicate :  
Description
Initialization of the _worker_id member of G1ParClosureSuper is somewhat complicated, in order to avoid accessing the partially initialized G1ParScanThreadState when constructing the G1ParScanClosure that is embedded in the state object.

However, it turns out that _worker_id is nearly unused.  The use by G1ParScanClosure is spurious, as the value is discarded obtained.  The only real use of that value is in G1ParCopyHelper.

By eliminating that member from G1ParClosureSuper and adding a similar member to G1ParCopyHelper, we can simplify the construction and usage of all the classes derived from G1ParClosureSuper.