< prev index next >

src/hotspot/share/runtime/thread.inline.hpp

Print this page
rev 47862 : imported patch 10.07.open.rebase_20171110.dcubed
rev 47865 : dholmes CR: Fix indents, trailing spaces and various typos. Add descriptions for the '_cnt', '_max' and '_times" fields, add impl notes to document the type choices.

*** 227,239 **** inline void Threads::inc_smr_deleted_thread_cnt() { Atomic::inc(&_smr_deleted_thread_cnt); } ! inline void Threads::update_smr_deleted_thread_time_max(jint new_value) { while (true) { ! jint cur_value = _smr_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, &_smr_deleted_thread_time_max, cur_value) == cur_value) { --- 227,239 ---- inline void Threads::inc_smr_deleted_thread_cnt() { Atomic::inc(&_smr_deleted_thread_cnt); } ! inline void Threads::update_smr_deleted_thread_time_max(uint new_value) { while (true) { ! uint cur_value = _smr_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, &_smr_deleted_thread_time_max, cur_value) == cur_value) {
*** 241,261 **** break; } } } ! inline void Threads::add_smr_deleted_thread_times(jint add_value) { Atomic::add(add_value, &_smr_deleted_thread_times); } inline void Threads::inc_smr_tlh_cnt() { Atomic::inc(&_smr_tlh_cnt); } ! inline void Threads::update_smr_tlh_time_max(jint new_value) { while (true) { ! jint cur_value = _smr_tlh_time_max; if (new_value <= cur_value) { // No need to update max value so we're done. break; } if (Atomic::cmpxchg(new_value, &_smr_tlh_time_max, cur_value) == cur_value) { --- 241,261 ---- break; } } } ! inline void Threads::add_smr_deleted_thread_times(uint add_value) { Atomic::add(add_value, &_smr_deleted_thread_times); } inline void Threads::inc_smr_tlh_cnt() { Atomic::inc(&_smr_tlh_cnt); } ! inline void Threads::update_smr_tlh_time_max(uint new_value) { while (true) { ! uint cur_value = _smr_tlh_time_max; if (new_value <= cur_value) { // No need to update max value so we're done. break; } if (Atomic::cmpxchg(new_value, &_smr_tlh_time_max, cur_value) == cur_value) {
*** 263,272 **** break; } } } ! inline void Threads::add_smr_tlh_times(jint add_value) { Atomic::add(add_value, &_smr_tlh_times); } #endif // SHARE_VM_RUNTIME_THREAD_INLINE_HPP --- 263,272 ---- break; } } } ! inline void Threads::add_smr_tlh_times(uint add_value) { Atomic::add(add_value, &_smr_tlh_times); } #endif // SHARE_VM_RUNTIME_THREAD_INLINE_HPP
< prev index next >