< prev index next >
src/hotspot/share/prims/jvmtiEnv.cpp
Print this page
rev 47223 : [mq]: heapz8
rev 47225 : [mq]: heap10
*** 1949,1965 ****
return JVMTI_ERROR_NONE;
} /* end IterateOverInstancesOfClass */
// Start the sampler.
jvmtiError
! JvmtiEnv::StartHeapSampling(jint monitoring_rate, jint max_storage) {
if (monitoring_rate < 0) {
return JVMTI_ERROR_ILLEGAL_ARGUMENT;
}
HeapThreadTransition htt(Thread::current());
! HeapMonitoring::initialize_profiling(monitoring_rate, max_storage);
return JVMTI_ERROR_NONE;
} /* end StartHeapSampling */
// Stop the sampler.
jvmtiError
--- 1949,1965 ----
return JVMTI_ERROR_NONE;
} /* end IterateOverInstancesOfClass */
// Start the sampler.
jvmtiError
! JvmtiEnv::StartHeapSampling(jint monitoring_rate, jint max_gc_storage) {
if (monitoring_rate < 0) {
return JVMTI_ERROR_ILLEGAL_ARGUMENT;
}
HeapThreadTransition htt(Thread::current());
! HeapMonitoring::initialize_profiling(monitoring_rate, max_gc_storage);
return JVMTI_ERROR_NONE;
} /* end StartHeapSampling */
// Stop the sampler.
jvmtiError
< prev index next >