src/share/vm/memory/heapInspection.cpp

changeset 3900
d2a62e0f25eb
parent 2708
1d1603768966
child 4037
da91efe96a93
     1.1 --- a/src/share/vm/memory/heapInspection.cpp	Wed Jun 27 15:23:36 2012 +0200
     1.2 +++ b/src/share/vm/memory/heapInspection.cpp	Thu Jun 28 17:03:16 2012 -0400
     1.3 @@ -116,7 +116,7 @@
     1.4  KlassInfoTable::KlassInfoTable(int size, HeapWord* ref) {
     1.5    _size = 0;
     1.6    _ref = ref;
     1.7 -  _buckets = NEW_C_HEAP_ARRAY(KlassInfoBucket, size);
     1.8 +  _buckets = NEW_C_HEAP_ARRAY(KlassInfoBucket, size, mtInternal);
     1.9    if (_buckets != NULL) {
    1.10      _size = size;
    1.11      for (int index = 0; index < _size; index++) {
    1.12 @@ -130,7 +130,7 @@
    1.13      for (int index = 0; index < _size; index++) {
    1.14        _buckets[index].empty();
    1.15      }
    1.16 -    FREE_C_HEAP_ARRAY(KlassInfoBucket, _buckets);
    1.17 +    FREE_C_HEAP_ARRAY(KlassInfoBucket, _buckets, mtInternal);
    1.18      _size = 0;
    1.19    }
    1.20  }
    1.21 @@ -179,7 +179,7 @@
    1.22  
    1.23  KlassInfoHisto::KlassInfoHisto(const char* title, int estimatedCount) :
    1.24    _title(title) {
    1.25 -  _elements = new (ResourceObj::C_HEAP) GrowableArray<KlassInfoEntry*>(estimatedCount,true);
    1.26 +  _elements = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<KlassInfoEntry*>(estimatedCount,true);
    1.27  }
    1.28  
    1.29  KlassInfoHisto::~KlassInfoHisto() {

mercurial