8223190: Test gc/arguments/TestShrinkHeapInSteps.java breaks with change for JDK-8074355
authorcoleenp
Wed, 01 May 2019 10:54:07 -0400
changeset 54665 f14a826e3c2e
parent 54664 5ddea9d48649
child 54666 1b5f0a3f9c41
8223190: Test gc/arguments/TestShrinkHeapInSteps.java breaks with change for JDK-8074355 Summary: Remove too strict assert. Reviewed-by: hseigel
src/hotspot/share/runtime/mutex.cpp
--- a/src/hotspot/share/runtime/mutex.cpp	Wed May 01 10:12:51 2019 -0400
+++ b/src/hotspot/share/runtime/mutex.cpp	Wed May 01 10:54:07 2019 -0400
@@ -40,10 +40,6 @@
   assert(!thread->is_Java_thread() || _safepoint_check_required != not_allowed,
          "This lock should %s have a safepoint check for Java threads: %s",
          _safepoint_check_required ? "always" : "never", name());
-
-  // If defined with safepoint_check_never, a NonJavaThread should never ask to safepoint check either.
-  assert(thread->is_Java_thread() || !do_safepoint_check || _safepoint_check_required != Monitor::_safepoint_check_never,
-         "NonJavaThread should not check for safepoint");
 }
 #endif // ASSERT