< prev index next >
src/hotspot/share/runtime/perfData.cpp
Print this page
*** 21,34 ****
* questions.
*
*/
#include "precompiled.hpp"
#include "classfile/vmSymbols.hpp"
#include "logging/log.hpp"
#include "oops/oop.inline.hpp"
- #include "prims/jvm.h"
#include "runtime/handles.inline.hpp"
#include "runtime/java.hpp"
#include "runtime/mutex.hpp"
#include "runtime/mutexLocker.hpp"
#include "runtime/os.hpp"
--- 21,34 ----
* questions.
*
*/
#include "precompiled.hpp"
+ #include "jvm.h"
#include "classfile/vmSymbols.hpp"
#include "logging/log.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/java.hpp"
#include "runtime/mutex.hpp"
#include "runtime/mutexLocker.hpp"
#include "runtime/os.hpp"
*** 418,432 ****
return p;
}
PerfStringVariable* PerfDataManager::create_string_variable(CounterNS ns,
const char* name,
! jint max_length,
const char* s,
TRAPS) {
! if (max_length == 0 && s != NULL) max_length = (jint)strlen(s);
assert(max_length != 0, "PerfStringVariable with length 0");
PerfStringVariable* p = new PerfStringVariable(ns, name, max_length, s);
--- 418,432 ----
return p;
}
PerfStringVariable* PerfDataManager::create_string_variable(CounterNS ns,
const char* name,
! int max_length,
const char* s,
TRAPS) {
! if (max_length == 0 && s != NULL) max_length = (int)strlen(s);
assert(max_length != 0, "PerfStringVariable with length 0");
PerfStringVariable* p = new PerfStringVariable(ns, name, max_length, s);
< prev index next >