equal
deleted
inserted
replaced
2579 int _thread_parity; |
2579 int _thread_parity; |
2580 |
2580 |
2581 public: |
2581 public: |
2582 G1RemarkThreadsClosure(G1CollectedHeap* g1h, CMTask* task) : |
2582 G1RemarkThreadsClosure(G1CollectedHeap* g1h, CMTask* task) : |
2583 _cm_obj(task), _cm_cl(g1h, g1h->concurrent_mark(), task), _code_cl(&_cm_cl, !CodeBlobToOopClosure::FixRelocations), |
2583 _cm_obj(task), _cm_cl(g1h, g1h->concurrent_mark(), task), _code_cl(&_cm_cl, !CodeBlobToOopClosure::FixRelocations), |
2584 _thread_parity(SharedHeap::heap()->strong_roots_parity()) {} |
2584 _thread_parity(Threads::thread_claim_parity()) {} |
2585 |
2585 |
2586 void do_thread(Thread* thread) { |
2586 void do_thread(Thread* thread) { |
2587 if (thread->is_Java_thread()) { |
2587 if (thread->is_Java_thread()) { |
2588 if (thread->claim_oops_do(true, _thread_parity)) { |
2588 if (thread->claim_oops_do(true, _thread_parity)) { |
2589 JavaThread* jt = (JavaThread*)thread; |
2589 JavaThread* jt = (JavaThread*)thread; |