src/hotspot/share/services/dtraceAttacher.cpp
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 55005 9b70ebd131b4
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
    31 #include "runtime/vmOperations.hpp"
    31 #include "runtime/vmOperations.hpp"
    32 #include "services/dtraceAttacher.hpp"
    32 #include "services/dtraceAttacher.hpp"
    33 
    33 
    34 #ifdef SOLARIS
    34 #ifdef SOLARIS
    35 
    35 
    36 static void set_bool_flag(const char* flag, bool value) {
    36 static void set_bool_flag(const char* name, bool value) {
    37   JVMFlag::boolAtPut((char*)flag, strlen(flag), &value,
    37   JVMFlag* flag = JVMFlag::find_flag(name);
    38                               JVMFlag::ATTACH_ON_DEMAND);
    38   JVMFlag::boolAtPut(flag, &value, JVMFlag::ATTACH_ON_DEMAND);
    39 }
    39 }
    40 
    40 
    41 // Enable only the "fine grained" flags. Do *not* touch
    41 // Enable only the "fine grained" flags. Do *not* touch
    42 // the overall "ExtendedDTraceProbes" flag.
    42 // the overall "ExtendedDTraceProbes" flag.
    43 void DTrace::enable_dprobes(int probes) {
    43 void DTrace::enable_dprobes(int probes) {