hotspot/src/share/vm/prims/jvmtiEnv.cpp
changeset 13195 be27e1b6a4b9
parent 11399 5dd5c4dd4b7d
child 13201 69f157caabcc
equal deleted inserted replaced
13099:64752e56d721 13195:be27e1b6a4b9
  1010   jvmtiError err = JVMTI_ERROR_NONE;
  1010   jvmtiError err = JVMTI_ERROR_NONE;
  1011   JavaThread* calling_thread = JavaThread::current();
  1011   JavaThread* calling_thread = JavaThread::current();
  1012 
  1012 
  1013   // growable array of jvmti monitors info on the C-heap
  1013   // growable array of jvmti monitors info on the C-heap
  1014   GrowableArray<jvmtiMonitorStackDepthInfo*> *owned_monitors_list =
  1014   GrowableArray<jvmtiMonitorStackDepthInfo*> *owned_monitors_list =
  1015       new (ResourceObj::C_HEAP) GrowableArray<jvmtiMonitorStackDepthInfo*>(1, true);
  1015       new (ResourceObj::C_HEAP, mtInternal) GrowableArray<jvmtiMonitorStackDepthInfo*>(1, true);
  1016 
  1016 
  1017   uint32_t debug_bits = 0;
  1017   uint32_t debug_bits = 0;
  1018   if (is_thread_fully_suspended(java_thread, true, &debug_bits)) {
  1018   if (is_thread_fully_suspended(java_thread, true, &debug_bits)) {
  1019     err = get_owned_monitors(calling_thread, java_thread, owned_monitors_list);
  1019     err = get_owned_monitors(calling_thread, java_thread, owned_monitors_list);
  1020   } else {
  1020   } else {
  1055   jvmtiError err = JVMTI_ERROR_NONE;
  1055   jvmtiError err = JVMTI_ERROR_NONE;
  1056   JavaThread* calling_thread  = JavaThread::current();
  1056   JavaThread* calling_thread  = JavaThread::current();
  1057 
  1057 
  1058   // growable array of jvmti monitors info on the C-heap
  1058   // growable array of jvmti monitors info on the C-heap
  1059   GrowableArray<jvmtiMonitorStackDepthInfo*> *owned_monitors_list =
  1059   GrowableArray<jvmtiMonitorStackDepthInfo*> *owned_monitors_list =
  1060          new (ResourceObj::C_HEAP) GrowableArray<jvmtiMonitorStackDepthInfo*>(1, true);
  1060          new (ResourceObj::C_HEAP, mtInternal) GrowableArray<jvmtiMonitorStackDepthInfo*>(1, true);
  1061 
  1061 
  1062   uint32_t debug_bits = 0;
  1062   uint32_t debug_bits = 0;
  1063   if (is_thread_fully_suspended(java_thread, true, &debug_bits)) {
  1063   if (is_thread_fully_suspended(java_thread, true, &debug_bits)) {
  1064     err = get_owned_monitors(calling_thread, java_thread, owned_monitors_list);
  1064     err = get_owned_monitors(calling_thread, java_thread, owned_monitors_list);
  1065   } else {
  1065   } else {