equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
|
26 #include "jvm.h" |
26 #include "classfile/vmSymbols.hpp" |
27 #include "classfile/vmSymbols.hpp" |
27 #include "logging/log.hpp" |
28 #include "logging/log.hpp" |
28 #include "oops/oop.inline.hpp" |
29 #include "oops/oop.inline.hpp" |
29 #include "prims/jvm.h" |
|
30 #include "runtime/handles.inline.hpp" |
30 #include "runtime/handles.inline.hpp" |
31 #include "runtime/java.hpp" |
31 #include "runtime/java.hpp" |
32 #include "runtime/mutex.hpp" |
32 #include "runtime/mutex.hpp" |
33 #include "runtime/mutexLocker.hpp" |
33 #include "runtime/mutexLocker.hpp" |
34 #include "runtime/os.hpp" |
34 #include "runtime/os.hpp" |
418 return p; |
418 return p; |
419 } |
419 } |
420 |
420 |
421 PerfStringVariable* PerfDataManager::create_string_variable(CounterNS ns, |
421 PerfStringVariable* PerfDataManager::create_string_variable(CounterNS ns, |
422 const char* name, |
422 const char* name, |
423 jint max_length, |
423 int max_length, |
424 const char* s, |
424 const char* s, |
425 TRAPS) { |
425 TRAPS) { |
426 |
426 |
427 if (max_length == 0 && s != NULL) max_length = (jint)strlen(s); |
427 if (max_length == 0 && s != NULL) max_length = (int)strlen(s); |
428 |
428 |
429 assert(max_length != 0, "PerfStringVariable with length 0"); |
429 assert(max_length != 0, "PerfStringVariable with length 0"); |
430 |
430 |
431 PerfStringVariable* p = new PerfStringVariable(ns, name, max_length, s); |
431 PerfStringVariable* p = new PerfStringVariable(ns, name, max_length, s); |
432 |
432 |