hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
changeset 29802 d485440c958a
parent 29795 984c5c379c6a
child 30153 596ed88949ad
equal deleted inserted replaced
29801:2e4a5be5a595 29802:d485440c958a
  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;