diff --git a/src/hotspot/share/code/debugInfoRec.cpp b/src/hotspot/share/code/debugInfoRec.cpp index a505ed73e93..707b935e17f 100644 --- a/src/hotspot/share/code/debugInfoRec.cpp +++ b/src/hotspot/share/code/debugInfoRec.cpp @@ -397,7 +397,7 @@ void DebugInformationRecorder::end_scopes(int pc_offset, bool is_safepoint) { #ifdef ASSERT bool DebugInformationRecorder::recorders_frozen() { - return _oop_recorder->is_complete() || _oop_recorder->is_complete(); + return _oop_recorder->is_complete(); } void DebugInformationRecorder::mark_recorders_frozen() {