--- a/src/hotspot/share/services/attachListener.cpp Thu Apr 26 09:10:04 2018 -0700
+++ b/src/hotspot/share/services/attachListener.cpp Thu Apr 26 11:19:05 2018 -0500
@@ -31,6 +31,7 @@
#include "oops/typeArrayOop.inline.hpp"
#include "prims/jvmtiExport.hpp"
#include "runtime/arguments.hpp"
+#include "runtime/flags/jvmFlag.hpp"
#include "runtime/globals.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/java.hpp"
@@ -275,9 +276,9 @@
FormatBuffer<80> err_msg("%s", "");
- int ret = WriteableFlags::set_flag(op->arg(0), op->arg(1), Flag::ATTACH_ON_DEMAND, err_msg);
- if (ret != Flag::SUCCESS) {
- if (ret == Flag::NON_WRITABLE) {
+ int ret = WriteableFlags::set_flag(op->arg(0), op->arg(1), JVMFlag::ATTACH_ON_DEMAND, err_msg);
+ if (ret != JVMFlag::SUCCESS) {
+ if (ret == JVMFlag::NON_WRITABLE) {
// if the flag is not manageable try to change it through
// the platform dependent implementation
return AttachListener::pd_set_flag(op, out);
@@ -298,7 +299,7 @@
out->print_cr("flag name is missing");
return JNI_ERR;
}
- Flag* f = Flag::find_flag((char*)name, strlen(name));
+ JVMFlag* f = JVMFlag::find_flag((char*)name, strlen(name));
if (f) {
f->print_as_flag(out);
out->cr();