< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahTimingTracker.cpp

Print this page

        

@@ -74,15 +74,12 @@
          phase == ShenandoahPhaseTimings::conc_traversal_termination ||
          phase == ShenandoahPhaseTimings::weakrefs_termination ||
          phase == ShenandoahPhaseTimings::full_gc_weakrefs_termination,
          "Only these phases");
 
-  assert(!Thread::current()->is_Worker_thread() &&
-             (Thread::current()->is_VM_thread() ||
-              Thread::current()->is_ConcurrentGC_thread()),
-        "Called from wrong thread");
-
+  assert(Thread::current()->is_VM_thread() || Thread::current()->is_ConcurrentGC_thread(),
+    "Called from wrong thread");
   _current_termination_phase = phase;
   ShenandoahHeap::heap()->phase_timings()->termination_times()->reset();
 }
 
 ShenandoahTerminationTracker::~ShenandoahTerminationTracker() {
< prev index next >