src/share/vm/utilities/histogram.cpp

changeset 3901
24b9c7f4cae6
parent 3900
d2a62e0f25eb
child 4153
b9a9ed0f8eeb
equal deleted inserted replaced
3898:bcffa4c5eef6 3901:24b9c7f4cae6
67 return (*e1)->compare(*e1,*e2); 67 return (*e1)->compare(*e1,*e2);
68 } 68 }
69 69
70 Histogram::Histogram(const char* title,int estimatedCount) { 70 Histogram::Histogram(const char* title,int estimatedCount) {
71 _title = title; 71 _title = title;
72 _elements = new (ResourceObj::C_HEAP) GrowableArray<HistogramElement*>(estimatedCount,true); 72 _elements = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<HistogramElement*>(estimatedCount,true);
73 } 73 }
74 74
75 void Histogram::add_element(HistogramElement* element) { 75 void Histogram::add_element(HistogramElement* element) {
76 // Note, we need to add locking ! 76 // Note, we need to add locking !
77 elements()->append(element); 77 elements()->append(element);

mercurial