mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
7120511: Add diagnostic commands
Reviewed-by: acorn, phh, dcubed, sspitsyn
This commit is contained in:
parent
66388c03c9
commit
849571d5b3
11 changed files with 454 additions and 53 deletions
|
@ -2323,7 +2323,7 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args,
|
|||
#ifndef PRODUCT
|
||||
// -Xprintflags
|
||||
} else if (match_option(option, "-Xprintflags", &tail)) {
|
||||
CommandLineFlags::printFlags();
|
||||
CommandLineFlags::printFlags(tty, false);
|
||||
vm_exit(0);
|
||||
#endif
|
||||
// -D
|
||||
|
@ -2971,13 +2971,13 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
|
|||
IgnoreUnrecognizedVMOptions = false;
|
||||
}
|
||||
if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) {
|
||||
CommandLineFlags::printFlags();
|
||||
CommandLineFlags::printFlags(tty, false);
|
||||
vm_exit(0);
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
if (match_option(option, "-XX:+PrintFlagsWithComments", &tail)) {
|
||||
CommandLineFlags::printFlags(true);
|
||||
CommandLineFlags::printFlags(tty, true);
|
||||
vm_exit(0);
|
||||
}
|
||||
#endif
|
||||
|
@ -3170,7 +3170,7 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
|
|||
#endif
|
||||
|
||||
if (PrintCommandLineFlags) {
|
||||
CommandLineFlags::printSetFlags();
|
||||
CommandLineFlags::printSetFlags(tty);
|
||||
}
|
||||
|
||||
// Apply CPU specific policy for the BiasedLocking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue