mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-22 08:21:27 +00:00
8223190: Test gc/arguments/TestShrinkHeapInSteps.java breaks with change for JDK-8074355
Remove too strict assert. Reviewed-by: hseigel
This commit is contained in:
parent
142c9b4907
commit
6f95cac0e2
@ -40,10 +40,6 @@ void Monitor::check_safepoint_state(Thread* thread, bool do_safepoint_check) {
|
||||
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user