mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
8076225: Move the thread claim parity from SharedHeap to Thread
Reviewed-by: brutisso, jwilhelm, kbarrett
This commit is contained in:
parent
0efa369ffb
commit
062cf882e0
6 changed files with 39 additions and 26 deletions
|
@ -2581,7 +2581,7 @@ class G1RemarkThreadsClosure : public ThreadClosure {
|
|||
public:
|
||||
G1RemarkThreadsClosure(G1CollectedHeap* g1h, CMTask* task) :
|
||||
_cm_obj(task), _cm_cl(g1h, g1h->concurrent_mark(), task), _code_cl(&_cm_cl, !CodeBlobToOopClosure::FixRelocations),
|
||||
_thread_parity(SharedHeap::heap()->strong_roots_parity()) {}
|
||||
_thread_parity(Threads::thread_claim_parity()) {}
|
||||
|
||||
void do_thread(Thread* thread) {
|
||||
if (thread->is_Java_thread()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue