src/share/vm/prims/jvmtiRawMonitor.cpp

changeset 3900
d2a62e0f25eb
parent 2314
f95d63e2154a
child 4153
b9a9ed0f8eeb
     1.1 --- a/src/share/vm/prims/jvmtiRawMonitor.cpp	Wed Jun 27 15:23:36 2012 +0200
     1.2 +++ b/src/share/vm/prims/jvmtiRawMonitor.cpp	Thu Jun 28 17:03:16 2012 -0400
     1.3 @@ -27,7 +27,7 @@
     1.4  #include "runtime/interfaceSupport.hpp"
     1.5  #include "runtime/thread.hpp"
     1.6  
     1.7 -GrowableArray<JvmtiRawMonitor*> *JvmtiPendingMonitors::_monitors = new (ResourceObj::C_HEAP) GrowableArray<JvmtiRawMonitor*>(1,true);
     1.8 +GrowableArray<JvmtiRawMonitor*> *JvmtiPendingMonitors::_monitors = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<JvmtiRawMonitor*>(1,true);
     1.9  
    1.10  void JvmtiPendingMonitors::transition_raw_monitors() {
    1.11    assert((Threads::number_of_threads()==1),
    1.12 @@ -53,7 +53,7 @@
    1.13  
    1.14  JvmtiRawMonitor::JvmtiRawMonitor(const char *name) {
    1.15  #ifdef ASSERT
    1.16 -  _name = strcpy(NEW_C_HEAP_ARRAY(char, strlen(name) + 1), name);
    1.17 +  _name = strcpy(NEW_C_HEAP_ARRAY(char, strlen(name) + 1, mtInternal), name);
    1.18  #else
    1.19    _name = NULL;
    1.20  #endif

mercurial