< prev index next >

src/hotspot/share/gc/g1/g1ConcurrentMarkThread.hpp

Print this page
*** 48,11 ***
      UndoCycleResetForNextCycle
    };
  
    Atomic<ServiceState> _state;
  
!   ServiceState state() const { return _state.load_relaxed(); }
  
    // Returns whether we are in a "Full" cycle.
    bool is_in_full_concurrent_cycle() const;
  
    // Wait for next cycle. Returns the command passed over.
--- 48,12 ---
      UndoCycleResetForNextCycle
    };
  
    Atomic<ServiceState> _state;
  
!   ServiceState state() const { return _state.load_acquire(); }
+   void set_state(ServiceState new_state) { _state.release_store(new_state); }
  
    // Returns whether we are in a "Full" cycle.
    bool is_in_full_concurrent_cycle() const;
  
    // Wait for next cycle. Returns the command passed over.
< prev index next >