src/hotspot/share/services/attachListener.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File webrev Cdiff src/hotspot/share/services/attachListener.cpp

src/hotspot/share/services/attachListener.cpp

Print this page

        

*** 273,285 **** return JNI_ERR; } 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) { // if the flag is not manageable try to change it through // the platform dependent implementation return AttachListener::pd_set_flag(op, out); } else { out->print_cr("%s", err_msg.buffer()); --- 273,285 ---- return JNI_ERR; } FormatBuffer<80> err_msg("%s", ""); ! 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); } else { out->print_cr("%s", err_msg.buffer());
*** 296,306 **** const char* name = NULL; if ((name = op->arg(0)) == NULL) { out->print_cr("flag name is missing"); return JNI_ERR; } ! Flag* f = Flag::find_flag((char*)name, strlen(name)); if (f) { f->print_as_flag(out); out->cr(); } else { out->print_cr("no such flag '%s'", name); --- 296,306 ---- const char* name = NULL; if ((name = op->arg(0)) == NULL) { out->print_cr("flag name is missing"); return JNI_ERR; } ! JVMFlag* f = JVMFlag::find_flag((char*)name, strlen(name)); if (f) { f->print_as_flag(out); out->cr(); } else { out->print_cr("no such flag '%s'", name);
src/hotspot/share/services/attachListener.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File