src/share/vm/services/threadService.cpp

changeset 3900
d2a62e0f25eb
parent 3381
8a63c6323842
child 4037
da91efe96a93
     1.1 --- a/src/share/vm/services/threadService.cpp	Wed Jun 27 15:23:36 2012 +0200
     1.2 +++ b/src/share/vm/services/threadService.cpp	Thu Jun 28 17:03:16 2012 -0400
     1.3 @@ -437,7 +437,7 @@
     1.4      GrowableArray<MonitorInfo*>* list = jvf->locked_monitors();
     1.5      int length = list->length();
     1.6      if (length > 0) {
     1.7 -      _locked_monitors = new (ResourceObj::C_HEAP) GrowableArray<oop>(length, true);
     1.8 +      _locked_monitors = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<oop>(length, true);
     1.9        for (int i = 0; i < length; i++) {
    1.10          MonitorInfo* monitor = list->at(i);
    1.11          assert(monitor->owner(), "This monitor must have an owning object");
    1.12 @@ -491,11 +491,11 @@
    1.13  
    1.14  ThreadStackTrace::ThreadStackTrace(JavaThread* t, bool with_locked_monitors) {
    1.15    _thread = t;
    1.16 -  _frames = new (ResourceObj::C_HEAP) GrowableArray<StackFrameInfo*>(INITIAL_ARRAY_SIZE, true);
    1.17 +  _frames = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<StackFrameInfo*>(INITIAL_ARRAY_SIZE, true);
    1.18    _depth = 0;
    1.19    _with_locked_monitors = with_locked_monitors;
    1.20    if (_with_locked_monitors) {
    1.21 -    _jni_locked_monitors = new (ResourceObj::C_HEAP) GrowableArray<oop>(INITIAL_ARRAY_SIZE, true);
    1.22 +    _jni_locked_monitors = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<oop>(INITIAL_ARRAY_SIZE, true);
    1.23    } else {
    1.24      _jni_locked_monitors = NULL;
    1.25    }
    1.26 @@ -689,7 +689,7 @@
    1.27  
    1.28  ThreadConcurrentLocks::ThreadConcurrentLocks(JavaThread* thread) {
    1.29    _thread = thread;
    1.30 -  _owned_locks = new (ResourceObj::C_HEAP) GrowableArray<instanceOop>(INITIAL_ARRAY_SIZE, true);
    1.31 +  _owned_locks = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<instanceOop>(INITIAL_ARRAY_SIZE, true);
    1.32    _next = NULL;
    1.33  }
    1.34  
    1.35 @@ -803,7 +803,7 @@
    1.36  
    1.37  DeadlockCycle::DeadlockCycle() {
    1.38    _is_deadlock = false;
    1.39 -  _threads = new (ResourceObj::C_HEAP) GrowableArray<JavaThread*>(INITIAL_ARRAY_SIZE, true);
    1.40 +  _threads = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<JavaThread*>(INITIAL_ARRAY_SIZE, true);
    1.41    _next = NULL;
    1.42  }
    1.43  

mercurial