src/hotspot/share/prims/jvmtiEnv.cpp
changeset 51138 914f305ba6fa
parent 50625 d9753e3db0c6
child 51329 9c68699bebe5
equal deleted inserted replaced
51137:e3bcc86855dd 51138:914f305ba6fa
  3642   *processor_count_ptr = os::active_processor_count();
  3642   *processor_count_ptr = os::active_processor_count();
  3643   return JVMTI_ERROR_NONE;
  3643   return JVMTI_ERROR_NONE;
  3644 } /* end GetAvailableProcessors */
  3644 } /* end GetAvailableProcessors */
  3645 
  3645 
  3646 jvmtiError
  3646 jvmtiError
  3647 JvmtiEnv::SetHeapSamplingRate(jint sampling_rate) {
  3647 JvmtiEnv::SetHeapSamplingInterval(jint sampling_interval) {
  3648   if (sampling_rate < 0) {
  3648   if (sampling_interval < 0) {
  3649     return JVMTI_ERROR_ILLEGAL_ARGUMENT;
  3649     return JVMTI_ERROR_ILLEGAL_ARGUMENT;
  3650   }
  3650   }
  3651   ThreadHeapSampler::set_sampling_rate(sampling_rate);
  3651   ThreadHeapSampler::set_sampling_interval(sampling_interval);
  3652   return JVMTI_ERROR_NONE;
  3652   return JVMTI_ERROR_NONE;
  3653 } /* end SetHeapSamplingRate */
  3653 } /* end SetHeapSamplingInterval */
  3654 
  3654 
  3655   //
  3655   //
  3656   // System Properties functions
  3656   // System Properties functions
  3657   //
  3657   //
  3658 
  3658