Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8250606: Remove unnecessary assertions in ObjectSynchronizer FastHash…
…code and inflate

Reviewed-by: dcubed, coleenp
  • Loading branch information
David Holmes committed Aug 7, 2020
1 parent 9d4ccfb commit 813322264fa581a974296334643091197a00871a
Showing 1 changed file with 0 additions and 14 deletions.
@@ -1017,15 +1017,6 @@ intptr_t ObjectSynchronizer::FastHashCode(Thread* self, oop obj) {
}
}

// hashCode() is a heap mutator ...
// Relaxing assertion for bug 6320749.
assert(Universe::verify_in_progress() || DumpSharedSpaces ||
!SafepointSynchronize::is_at_safepoint(), "invariant");
assert(Universe::verify_in_progress() || DumpSharedSpaces ||
self->is_Java_thread() , "invariant");
assert(Universe::verify_in_progress() || DumpSharedSpaces ||
((JavaThread *)self)->thread_state() != _thread_blocked, "invariant");

while (true) {
ObjectMonitor* monitor = NULL;
markWord temp, test;
@@ -1807,11 +1798,6 @@ void ObjectSynchronizer::inflate_helper(oop obj) {

ObjectMonitor* ObjectSynchronizer::inflate(Thread* self, oop object,
const InflateCause cause) {
// Inflate mutates the heap ...
// Relaxing assertion for bug 6320749.
assert(Universe::verify_in_progress() ||
!SafepointSynchronize::is_at_safepoint(), "invariant");

EventJavaMonitorInflate event;

for (;;) {

0 comments on commit 8133222

Please sign in to comment.