< prev index next >

src/hotspot/share/runtime/threadSMR.cpp

Print this page

        

*** 132,142 **** uint ThreadsSMRSupport::_to_delete_list_max = 0; // 'inline' functions first so the definitions are before first use: inline void ThreadsSMRSupport::add_deleted_thread_times(uint add_value) { ! Atomic::add(add_value, &_deleted_thread_times); } inline void ThreadsSMRSupport::inc_deleted_thread_cnt() { Atomic::inc(&_deleted_thread_cnt); } --- 132,142 ---- uint ThreadsSMRSupport::_to_delete_list_max = 0; // 'inline' functions first so the definitions are before first use: inline void ThreadsSMRSupport::add_deleted_thread_times(uint add_value) { ! Atomic::add(&_deleted_thread_times, add_value); } inline void ThreadsSMRSupport::inc_deleted_thread_cnt() { Atomic::inc(&_deleted_thread_cnt); }
*** 154,164 **** uint cur_value = _deleted_thread_time_max; if (new_value <= cur_value) { // No need to update max value so we're done. break; } ! if (Atomic::cmpxchg(new_value, &_deleted_thread_time_max, cur_value) == cur_value) { // Updated max value so we're done. Otherwise try it all again. break; } } } --- 154,164 ---- uint cur_value = _deleted_thread_time_max; if (new_value <= cur_value) { // No need to update max value so we're done. break; } ! if (Atomic::cmpxchg(&_deleted_thread_time_max, cur_value, new_value) == cur_value) { // Updated max value so we're done. Otherwise try it all again. break; } } }
*** 168,178 **** _java_thread_list_max = new_value; } } inline ThreadsList* ThreadsSMRSupport::xchg_java_thread_list(ThreadsList* new_list) { ! return (ThreadsList*)Atomic::xchg(new_list, &_java_thread_list); } // Hash table of pointers found by a scan. Used for collecting hazard // pointers (ThreadsList references). Also used for collecting JavaThreads // that are indirectly referenced by hazard ptrs. An instance of this --- 168,178 ---- _java_thread_list_max = new_value; } } inline ThreadsList* ThreadsSMRSupport::xchg_java_thread_list(ThreadsList* new_list) { ! return (ThreadsList*)Atomic::xchg(&_java_thread_list, new_list); } // Hash table of pointers found by a scan. Used for collecting hazard // pointers (ThreadsList references). Also used for collecting JavaThreads // that are indirectly referenced by hazard ptrs. An instance of this
< prev index next >