mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8236736: Change notproduct JVM flags to develop flags
Reviewed-by: iklam, kvn, kbarrett
This commit is contained in:
parent
80c54b484f
commit
bea493bcb8
43 changed files with 180 additions and 281 deletions
|
@ -1132,8 +1132,7 @@ bool Arguments::process_argument(const char* arg,
|
|||
JVMFlag::MsgType msg_type = found_flag->get_locked_message(locked_message_buf, BUFLEN);
|
||||
if (strlen(locked_message_buf) != 0) {
|
||||
#ifdef PRODUCT
|
||||
bool mismatched = ((msg_type == JVMFlag::NOTPRODUCT_FLAG_BUT_PRODUCT_BUILD) ||
|
||||
(msg_type == JVMFlag::DEVELOPER_FLAG_BUT_PRODUCT_BUILD));
|
||||
bool mismatched = msg_type == JVMFlag::DEVELOPER_FLAG_BUT_PRODUCT_BUILD;
|
||||
if (ignore_unrecognized && mismatched) {
|
||||
return true;
|
||||
}
|
||||
|
@ -3416,20 +3415,16 @@ bool Arguments::handle_deprecated_print_gc_flags() {
|
|||
}
|
||||
|
||||
static void apply_debugger_ergo() {
|
||||
#ifndef PRODUCT
|
||||
// UseDebuggerErgo is notproduct
|
||||
#ifdef ASSERT
|
||||
if (ReplayCompiles) {
|
||||
FLAG_SET_ERGO_IF_DEFAULT(UseDebuggerErgo, true);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef PRODUCT
|
||||
if (UseDebuggerErgo) {
|
||||
// Turn on sub-flags
|
||||
FLAG_SET_ERGO_IF_DEFAULT(UseDebuggerErgo1, true);
|
||||
FLAG_SET_ERGO_IF_DEFAULT(UseDebuggerErgo2, true);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (UseDebuggerErgo2) {
|
||||
// Debugging with limited number of CPUs
|
||||
|
@ -3438,6 +3433,7 @@ static void apply_debugger_ergo() {
|
|||
FLAG_SET_ERGO_IF_DEFAULT(ParallelGCThreads, 1);
|
||||
FLAG_SET_ERGO_IF_DEFAULT(CICompilerCount, 2);
|
||||
}
|
||||
#endif // ASSERT
|
||||
}
|
||||
|
||||
// Parse entry point called from JNI_CreateJavaVM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue