--- old/src/hotspot/share/runtime/synchronizer.cpp 2018-09-18 19:55:13.913183863 -0700 +++ new/src/hotspot/share/runtime/synchronizer.cpp 2018-09-18 19:55:13.657183872 -0700 @@ -1058,21 +1058,6 @@ } } -void ObjectSynchronizer::verifyInUse(Thread *Self) { - ObjectMonitor* mid; - int in_use_tally = 0; - for (mid = Self->omInUseList; mid != NULL; mid = mid->FreeNext) { - in_use_tally++; - } - assert(in_use_tally == Self->omInUseCount, "in-use count off"); - - int free_tally = 0; - for (mid = Self->omFreeList; mid != NULL; mid = mid->FreeNext) { - free_tally++; - } - assert(free_tally == Self->omFreeCount, "free count off"); -} - ObjectMonitor* ObjectSynchronizer::omAlloc(Thread * Self) { // A large MAXPRIVATE value reduces both list lock contention // and list coherency traffic, but also tends to increase the --- old/src/hotspot/share/runtime/synchronizer.hpp 2018-09-18 19:55:14.789183833 -0700 +++ new/src/hotspot/share/runtime/synchronizer.hpp 2018-09-18 19:55:14.581183840 -0700 @@ -105,7 +105,6 @@ static void reenter (Handle obj, intptr_t recursion, TRAPS); // thread-specific and global objectMonitor free list accessors - static void verifyInUse(Thread * Self); static ObjectMonitor * omAlloc(Thread * Self); static void omRelease(Thread * Self, ObjectMonitor * m, bool FromPerThreadAlloc);