hotspot/src/os/solaris/vm/attachListener_solaris.cpp
changeset 5089 0cce506a0158
parent 1 489c9b5090e2
child 5237 aab592fd4f44
equal deleted inserted replaced
5088:a7a4e66595ec 5089:0cce506a0158
   666       out->print_cr("flag value has to be an integer");
   666       out->print_cr("flag value has to be an integer");
   667       return JNI_ERR;
   667       return JNI_ERR;
   668     }
   668     }
   669   }
   669   }
   670 
   670 
   671   if (strcmp(name, "ExtendedDTraceProbes") != 0) {
   671   if (strcmp(name, "ExtendedDTraceProbes") == 0) {
   672     out->print_cr("flag '%s' cannot be changed", name);
   672     DTrace::set_extended_dprobes(flag);
   673     return JNI_ERR;
   673     return JNI_OK;
   674   }
   674   }
   675 
   675 
   676   DTrace::set_extended_dprobes(flag);
   676   if (strcmp(name, "DTraceMonitorProbes") == 0) {
   677   return JNI_OK;
   677     DTrace::set_monitor_dprobes(flag);
       
   678     return JNI_OK;
       
   679   }
       
   680 
       
   681   out->print_cr("flag '%s' cannot be changed", name);
       
   682   return JNI_ERR;
   678 }
   683 }
   679 
   684 
   680 void AttachListener::pd_detachall() {
   685 void AttachListener::pd_detachall() {
   681   DTrace::detach_all_clients();
   686   DTrace::detach_all_clients();
   682 }
   687 }