equal
deleted
inserted
replaced
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) { |