--- old/src/hotspot/share/services/diagnosticCommand.cpp 2018-03-29 13:44:20.000000000 -0500 +++ new/src/hotspot/share/services/diagnosticCommand.cpp 2018-03-29 13:44:20.000000000 -0500 @@ -33,7 +33,6 @@ #include "oops/objArrayOop.inline.hpp" #include "oops/oop.inline.hpp" #include "oops/typeArrayOop.inline.hpp" -#include "runtime/globals.hpp" #include "runtime/handles.inline.hpp" #include "runtime/javaCalls.hpp" #include "runtime/os.hpp" @@ -224,9 +223,9 @@ void PrintVMFlagsDCmd::execute(DCmdSource source, TRAPS) { if (_all.value()) { - CommandLineFlags::printFlags(output(), true); + JVMFlag::printFlags(output(), true); } else { - CommandLineFlags::printSetFlags(output()); + JVMFlag::printSetFlags(output()); } } @@ -257,9 +256,9 @@ } FormatBuffer<80> err_msg("%s", ""); - int ret = WriteableFlags::set_flag(_flag.value(), val, Flag::MANAGEMENT, err_msg); + int ret = WriteableFlags::set_flag(_flag.value(), val, JVMFlag::MANAGEMENT, err_msg); - if (ret != Flag::SUCCESS) { + if (ret != JVMFlag::SUCCESS) { output()->print_cr("%s", err_msg.buffer()); } }