Skip to content

Commit

Permalink
8232147: Remove notproduct option IgnoreLockingAssertions
Browse files Browse the repository at this point in the history
Removed option.

Reviewed-by: coleenp, dholmes
  • Loading branch information
Kim Barrett committed Oct 12, 2019
1 parent 4b7bbaf commit b8c7a95
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/hotspot/share/oops/klassVtable.cpp
Expand Up @@ -1501,7 +1501,6 @@ void klassVtable::print() {
#endif

void vtableEntry::verify(klassVtable* vt, outputStream* st) {
NOT_PRODUCT(FlagSetting fs(IgnoreLockingAssertions, true));
Klass* vtklass = vt->klass();
if (vtklass->is_instance_klass() &&
(InstanceKlass::cast(vtklass)->major_version() >= klassVtable::VTABLE_TRANSITIVE_OVERRIDE_VERSION)) {
Expand Down
3 changes: 0 additions & 3 deletions src/hotspot/share/runtime/globals.hpp
Expand Up @@ -1197,9 +1197,6 @@ const size_t minimumSymbolTableSize = 1024;
develop(bool, TraceCreateZombies, false, \
"trace creation of zombie nmethods") \
\
notproduct(bool, IgnoreLockingAssertions, false, \
"disable locking assertions (for speed)") \
\
product(bool, RangeCheckElimination, true, \
"Eliminate range checks") \
\
Expand Down
3 changes: 0 additions & 3 deletions src/hotspot/share/runtime/mutexLocker.cpp
Expand Up @@ -161,7 +161,6 @@ static int _num_mutex;
#ifdef ASSERT
void assert_locked_or_safepoint(const Mutex* lock) {
// check if this thread owns the lock (common case)
if (IgnoreLockingAssertions) return;
assert(lock != NULL, "Need non-NULL lock");
if (lock->owned_by_self()) return;
if (SafepointSynchronize::is_at_safepoint()) return;
Expand All @@ -174,7 +173,6 @@ void assert_locked_or_safepoint(const Mutex* lock) {

// a weaker assertion than the above
void assert_locked_or_safepoint_weak(const Mutex* lock) {
if (IgnoreLockingAssertions) return;
assert(lock != NULL, "Need non-NULL lock");
if (lock->is_locked()) return;
if (SafepointSynchronize::is_at_safepoint()) return;
Expand All @@ -184,7 +182,6 @@ void assert_locked_or_safepoint_weak(const Mutex* lock) {

// a stronger assertion than the above
void assert_lock_strong(const Mutex* lock) {
if (IgnoreLockingAssertions) return;
assert(lock != NULL, "Need non-NULL lock");
if (lock->owned_by_self()) return;
fatal("must own lock %s", lock->name());
Expand Down

0 comments on commit b8c7a95

Please sign in to comment.