src/share/vm/services/attachListener.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8024545 Cdiff src/share/vm/services/attachListener.cpp

src/share/vm/services/attachListener.cpp

Print this page

        

*** 243,253 **** out->print_cr("flag value must be a boolean (1 or 0)"); return JNI_ERR; } value = (tmp != 0); } ! bool res = CommandLineFlags::boolAtPut((char*)name, &value, ATTACH_ON_DEMAND); if (! res) { out->print_cr("setting flag %s failed", name); } return res? JNI_OK : JNI_ERR; } --- 243,253 ---- out->print_cr("flag value must be a boolean (1 or 0)"); return JNI_ERR; } value = (tmp != 0); } ! bool res = CommandLineFlags::boolAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); if (! res) { out->print_cr("setting flag %s failed", name); } return res? JNI_OK : JNI_ERR; }
*** 261,271 **** if (n != 1) { out->print_cr("flag value must be an integer"); return JNI_ERR; } } ! bool res = CommandLineFlags::intxAtPut((char*)name, &value, ATTACH_ON_DEMAND); if (! res) { out->print_cr("setting flag %s failed", name); } return res? JNI_OK : JNI_ERR; --- 261,271 ---- if (n != 1) { out->print_cr("flag value must be an integer"); return JNI_ERR; } } ! bool res = CommandLineFlags::intxAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); if (! res) { out->print_cr("setting flag %s failed", name); } return res? JNI_OK : JNI_ERR;
*** 280,290 **** if (n != 1) { out->print_cr("flag value must be an unsigned integer"); return JNI_ERR; } } ! bool res = CommandLineFlags::uintxAtPut((char*)name, &value, ATTACH_ON_DEMAND); if (! res) { out->print_cr("setting flag %s failed", name); } return res? JNI_OK : JNI_ERR; --- 280,290 ---- if (n != 1) { out->print_cr("flag value must be an unsigned integer"); return JNI_ERR; } } ! bool res = CommandLineFlags::uintxAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); if (! res) { out->print_cr("setting flag %s failed", name); } return res? JNI_OK : JNI_ERR;
*** 299,309 **** if (n != 1) { out->print_cr("flag value must be an unsigned 64-bit integer"); return JNI_ERR; } } ! bool res = CommandLineFlags::uint64_tAtPut((char*)name, &value, ATTACH_ON_DEMAND); if (! res) { out->print_cr("setting flag %s failed", name); } return res? JNI_OK : JNI_ERR; --- 299,309 ---- if (n != 1) { out->print_cr("flag value must be an unsigned 64-bit integer"); return JNI_ERR; } } ! bool res = CommandLineFlags::uint64_tAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); if (! res) { out->print_cr("setting flag %s failed", name); } return res? JNI_OK : JNI_ERR;
*** 314,324 **** const char* value; if ((value = op->arg(1)) == NULL) { out->print_cr("flag value must be a string"); return JNI_ERR; } ! bool res = CommandLineFlags::ccstrAtPut((char*)name, &value, ATTACH_ON_DEMAND); if (res) { FREE_C_HEAP_ARRAY(char, value, mtInternal); } else { out->print_cr("setting flag %s failed", name); } --- 314,324 ---- const char* value; if ((value = op->arg(1)) == NULL) { out->print_cr("flag value must be a string"); return JNI_ERR; } ! bool res = CommandLineFlags::ccstrAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); if (res) { FREE_C_HEAP_ARRAY(char, value, mtInternal); } else { out->print_cr("setting flag %s failed", name); }
src/share/vm/services/attachListener.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File