src/hotspot/share/services/attachListener.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/hotspot/share/services/attachListener.cpp	Thu Apr  5 12:03:38 2018
--- new/src/hotspot/share/services/attachListener.cpp	Thu Apr  5 12:03:38 2018

*** 273,285 **** --- 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 == Flag::NON_WRITABLE) { ! 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 **** --- 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