Skip to content
Permalink
Browse files

8232147: Remove notproduct option IgnoreLockingAssertions

Removed option.

Reviewed-by: coleenp, dholmes
  • Loading branch information
Kim Barrett
Kim Barrett committed Oct 12, 2019
1 parent 4b7bbaf commit b8c7a95859192cd989894a488a64855b57563007
@@ -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)) {
@@ -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") \
\
@@ -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;
@@ -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;
@@ -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());

0 comments on commit b8c7a95

Please sign in to comment.
You can’t perform that action at this time.