src/hotspot/share/utilities/concurrentHashTableTasks.inline.hpp
changeset 59247 56bf71d64d51
parent 55478 ae2e53e379cb
child 59249 29b0d0b61615
equal deleted inserted replaced
59246:fcad92f425c5 59247:56bf71d64d51
    72     _stop_task = (((size_t)1) << tmp);
    72     _stop_task = (((size_t)1) << tmp);
    73   }
    73   }
    74 
    74 
    75   // Returns false if all ranges are claimed.
    75   // Returns false if all ranges are claimed.
    76   bool have_more_work() {
    76   bool have_more_work() {
    77     return OrderAccess::load_acquire(&_next_to_claim) >= _stop_task;
    77     return Atomic::load_acquire(&_next_to_claim) >= _stop_task;
    78   }
    78   }
    79 
    79 
    80   void thread_owns_resize_lock(Thread* thread) {
    80   void thread_owns_resize_lock(Thread* thread) {
    81     assert(BucketsOperation::_cht->_resize_lock_owner == thread,
    81     assert(BucketsOperation::_cht->_resize_lock_owner == thread,
    82            "Should be locked by me");
    82            "Should be locked by me");