< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahUtils.hpp

Print this page

        

*** 189,218 **** public: ShenandoahParallelWorkerSession(uint worker_id) : ShenandoahWorkerSession(worker_id) { } ~ShenandoahParallelWorkerSession(); }; - class ShenandoahSuspendibleThreadSetJoiner { - private: - SuspendibleThreadSetJoiner _joiner; - public: - ShenandoahSuspendibleThreadSetJoiner(bool active = true) : _joiner(active) { - assert(!ShenandoahThreadLocalData::is_evac_allowed(Thread::current()), "STS should be joined before evac scope"); - } - ~ShenandoahSuspendibleThreadSetJoiner() { - assert(!ShenandoahThreadLocalData::is_evac_allowed(Thread::current()), "STS should be left after evac scope"); - } - }; - - class ShenandoahSuspendibleThreadSetLeaver { - private: - SuspendibleThreadSetLeaver _leaver; - public: - ShenandoahSuspendibleThreadSetLeaver(bool active = true) : _leaver(active) { - assert(!ShenandoahThreadLocalData::is_evac_allowed(Thread::current()), "STS should be left after evac scope"); - } - ~ShenandoahSuspendibleThreadSetLeaver() { - assert(!ShenandoahThreadLocalData::is_evac_allowed(Thread::current()), "STS should be joined before evac scope"); - } - }; - #endif // SHARE_GC_SHENANDOAH_SHENANDOAHUTILS_HPP --- 189,194 ----
< prev index next >