Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit 4d29116

Browse files
committedOct 5, 2020
8253433: Remove -XX:+Debugging product option
Reviewed-by: kbarrett, stuefe, dholmes
1 parent 81dae70 commit 4d29116

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed
 

‎src/hotspot/share/runtime/arguments.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ static SpecialFlag const special_jvm_flags[] = {
553553
{ "UseSemaphoreGCThreadsSynchronization", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },
554554
{ "ForceNUMA", JDK_Version::jdk(15), JDK_Version::jdk(16), JDK_Version::jdk(17) },
555555
{ "InsertMemBarAfterArraycopy", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },
556+
{ "Debugging", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },
556557

557558
#ifdef TEST_VERIFY_SPECIAL_JVM_FLAGS
558559
// These entries will generate build errors. Their purpose is to test the macros.

‎src/hotspot/share/runtime/globals.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,6 @@ const intx ObjectAlignmentInBytes = 8;
395395
notproduct(bool, WalkStackALot, false, \
396396
"Trace stack (no print) at every exit from the runtime system") \
397397
\
398-
product(bool, Debugging, false, \
399-
"Set when executing debug methods in debug.cpp " \
400-
"(to prevent triggering assertions)") \
401-
\
402398
notproduct(bool, VerifyLastFrame, false, \
403399
"Verify oops on last frame on entry to VM") \
404400
\

‎src/hotspot/share/utilities/debug.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ static intx g_asserting_thread = 0;
7171
static void* g_assertion_context = NULL;
7272
#endif // CAN_SHOW_REGISTERS_ON_ASSERT
7373

74+
// Set to suppress secondary error reporting.
75+
bool Debugging = false;
76+
7477
#ifndef ASSERT
7578
# ifdef _DEBUG
7679
// NOTE: don't turn the lines below into a comment -- if you're getting
@@ -367,9 +370,9 @@ class Command : public StackObj {
367370
}
368371

369372
~Command() {
370-
tty->flush();
371-
Debugging = debug_save;
372-
level--;
373+
tty->flush();
374+
Debugging = debug_save;
375+
level--;
373376
}
374377
};
375378

‎src/hotspot/share/utilities/debug.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ enum VMErrorType {
152152
OOM_MMAP_ERROR = 0xe0000002
153153
};
154154

155+
// Set to suppress secondary error reporting.
156+
// Really should have a qualified name or something.
157+
extern bool Debugging;
158+
155159
// error reporting helper functions
156160
void report_vm_error(const char* file, int line, const char* error_msg);
157161
void report_vm_error(const char* file, int line, const char* error_msg,

0 commit comments

Comments
 (0)