src/hotspot/share/runtime/threadSMR.cpp
changeset 59251 4cbfa5077d68
parent 59249 29b0d0b61615
child 59252 623722a6aeb9
equal deleted inserted replaced
59250:a6deb69743d4 59251:4cbfa5077d68
   168     _java_thread_list_max = new_value;
   168     _java_thread_list_max = new_value;
   169   }
   169   }
   170 }
   170 }
   171 
   171 
   172 inline ThreadsList* ThreadsSMRSupport::xchg_java_thread_list(ThreadsList* new_list) {
   172 inline ThreadsList* ThreadsSMRSupport::xchg_java_thread_list(ThreadsList* new_list) {
   173   return (ThreadsList*)Atomic::xchg(new_list, &_java_thread_list);
   173   return (ThreadsList*)Atomic::xchg(&_java_thread_list, new_list);
   174 }
   174 }
   175 
   175 
   176 // Hash table of pointers found by a scan. Used for collecting hazard
   176 // Hash table of pointers found by a scan. Used for collecting hazard
   177 // pointers (ThreadsList references). Also used for collecting JavaThreads
   177 // pointers (ThreadsList references). Also used for collecting JavaThreads
   178 // that are indirectly referenced by hazard ptrs. An instance of this
   178 // that are indirectly referenced by hazard ptrs. An instance of this