< prev index next >

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

Print this page




 174 };
 175 
 176 class ShenandoahConcurrentWorkerSession : public ShenandoahWorkerSession {
 177 private:
 178   EventGCPhaseConcurrent _event;
 179 
 180 public:
 181   ShenandoahConcurrentWorkerSession(uint worker_id) : ShenandoahWorkerSession(worker_id) { }
 182   ~ShenandoahConcurrentWorkerSession();
 183 };
 184 
 185 class ShenandoahParallelWorkerSession : public ShenandoahWorkerSession {
 186 private:
 187   EventGCPhaseParallel _event;
 188 
 189 public:
 190   ShenandoahParallelWorkerSession(uint worker_id) : ShenandoahWorkerSession(worker_id) { }
 191   ~ShenandoahParallelWorkerSession();
 192 };
 193 
 194 class ShenandoahSuspendibleThreadSetJoiner {
 195 private:
 196   SuspendibleThreadSetJoiner _joiner;
 197 public:
 198   ShenandoahSuspendibleThreadSetJoiner(bool active = true) : _joiner(active) {
 199     assert(!ShenandoahThreadLocalData::is_evac_allowed(Thread::current()), "STS should be joined before evac scope");
 200   }
 201   ~ShenandoahSuspendibleThreadSetJoiner() {
 202     assert(!ShenandoahThreadLocalData::is_evac_allowed(Thread::current()), "STS should be left after evac scope");
 203   }
 204 };
 205 
 206 class ShenandoahSuspendibleThreadSetLeaver {
 207 private:
 208   SuspendibleThreadSetLeaver _leaver;
 209 public:
 210   ShenandoahSuspendibleThreadSetLeaver(bool active = true) : _leaver(active) {
 211     assert(!ShenandoahThreadLocalData::is_evac_allowed(Thread::current()), "STS should be left after evac scope");
 212   }
 213   ~ShenandoahSuspendibleThreadSetLeaver() {
 214     assert(!ShenandoahThreadLocalData::is_evac_allowed(Thread::current()), "STS should be joined before evac scope");
 215   }
 216 };
 217 
 218 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHUTILS_HPP


 174 };
 175 
 176 class ShenandoahConcurrentWorkerSession : public ShenandoahWorkerSession {
 177 private:
 178   EventGCPhaseConcurrent _event;
 179 
 180 public:
 181   ShenandoahConcurrentWorkerSession(uint worker_id) : ShenandoahWorkerSession(worker_id) { }
 182   ~ShenandoahConcurrentWorkerSession();
 183 };
 184 
 185 class ShenandoahParallelWorkerSession : public ShenandoahWorkerSession {
 186 private:
 187   EventGCPhaseParallel _event;
 188 
 189 public:
 190   ShenandoahParallelWorkerSession(uint worker_id) : ShenandoahWorkerSession(worker_id) { }
 191   ~ShenandoahParallelWorkerSession();
 192 };
 193 
























 194 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHUTILS_HPP
< prev index next >