src/share/vm/prims/jvmtiImpl.cpp

changeset 3900
d2a62e0f25eb
parent 3156
f08d439fab8c
child 4037
da91efe96a93
     1.1 --- a/src/share/vm/prims/jvmtiImpl.cpp	Wed Jun 27 15:23:36 2012 +0200
     1.2 +++ b/src/share/vm/prims/jvmtiImpl.cpp	Thu Jun 28 17:03:16 2012 -0400
     1.3 @@ -98,8 +98,8 @@
     1.4  void GrowableCache::recache() {
     1.5    int len = _elements->length();
     1.6  
     1.7 -  FREE_C_HEAP_ARRAY(address, _cache);
     1.8 -  _cache = NEW_C_HEAP_ARRAY(address,len+1);
     1.9 +  FREE_C_HEAP_ARRAY(address, _cache, mtInternal);
    1.10 +  _cache = NEW_C_HEAP_ARRAY(address,len+1, mtInternal);
    1.11  
    1.12    for (int i=0; i<len; i++) {
    1.13      _cache[i] = _elements->at(i)->getCacheValue();
    1.14 @@ -142,13 +142,13 @@
    1.15  GrowableCache::~GrowableCache() {
    1.16    clear();
    1.17    delete _elements;
    1.18 -  FREE_C_HEAP_ARRAY(address, _cache);
    1.19 +  FREE_C_HEAP_ARRAY(address, _cache, mtInternal);
    1.20  }
    1.21  
    1.22  void GrowableCache::initialize(void *this_obj, void listener_fun(void *, address*) ) {
    1.23    _this_obj       = this_obj;
    1.24    _listener_fun   = listener_fun;
    1.25 -  _elements       = new (ResourceObj::C_HEAP) GrowableArray<GrowableElement*>(5,true);
    1.26 +  _elements       = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<GrowableElement*>(5,true);
    1.27    recache();
    1.28  }
    1.29  

mercurial