Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142724 | emb-9 | Kim Barrett | P4 | Resolved | Fixed | team |
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.
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.
- backported by
-
JDK-8142724 Eliminate G1ParClosureSuper::_worker_id
-
- Resolved
-
- duplicates
-
JDK-8133096 Remove duplicate _worker_id in G1ParClosureSuper
-
- Closed
-