src/hotspot/share/utilities/globalCounter.inline.hpp
changeset 51548 35a6956f4243
parent 51511 eb8d5aeabab3
child 52332 d2a3503c72f7
--- a/src/hotspot/share/utilities/globalCounter.inline.hpp	Tue Aug 28 14:45:34 2018 -0400
+++ b/src/hotspot/share/utilities/globalCounter.inline.hpp	Tue Aug 28 16:04:54 2018 -0400
@@ -31,7 +31,6 @@
 
 inline void GlobalCounter::critical_section_begin(Thread *thread) {
   assert(thread == Thread::current(), "must be current thread");
-  assert(thread->is_Named_thread() || thread->is_Java_thread(), "must be NamedThread or JavaThread");
   assert((*thread->get_rcu_counter() & COUNTER_ACTIVE) == 0x0, "nested critical sections, not supported yet");
   uintx gbl_cnt = OrderAccess::load_acquire(&_global_counter._counter);
   OrderAccess::release_store_fence(thread->get_rcu_counter(), gbl_cnt | COUNTER_ACTIVE);
@@ -39,7 +38,6 @@
 
 inline void GlobalCounter::critical_section_end(Thread *thread) {
   assert(thread == Thread::current(), "must be current thread");
-  assert(thread->is_Named_thread() || thread->is_Java_thread(), "must be NamedThread or JavaThread");
   assert((*thread->get_rcu_counter() & COUNTER_ACTIVE) == COUNTER_ACTIVE, "must be in critical section");
   // Mainly for debugging we set it to 'now'.
   uintx gbl_cnt = OrderAccess::load_acquire(&_global_counter._counter);