hotspot/src/share/vm/services/memoryService.cpp
changeset 31371 311143309e73
parent 30764 fec48bf5a827
child 31373 21f527ce09e0
--- a/hotspot/src/share/vm/services/memoryService.cpp	Wed Jun 17 21:44:48 2015 +0000
+++ b/hotspot/src/share/vm/services/memoryService.cpp	Thu Jun 18 14:39:38 2015 -0500
@@ -518,8 +518,8 @@
 bool MemoryService::set_verbose(bool verbose) {
   MutexLocker m(Management_lock);
   // verbose will be set to the previous value
-  bool succeed = CommandLineFlags::boolAtPut((char*)"PrintGC", &verbose, Flag::MANAGEMENT);
-  assert(succeed, "Setting PrintGC flag fails");
+  Flag::Error error = CommandLineFlags::boolAtPut("PrintGC", &verbose, Flag::MANAGEMENT);
+  assert(error==Flag::SUCCESS, err_msg("Setting PrintGC flag failed with error %s", Flag::flag_error_str(error)));
   ClassLoadingService::reset_trace_class_unloading();
 
   return verbose;