Mercurial > hg > truffle
comparison src/share/vm/memory/heapInspection.cpp @ 20360:833b0f92429a
8046598: Scalable Native memory tracking development
Summary: Enhance scalability of native memory tracking
Reviewed-by: coleenp, ctornqvi, gtriantafill
author | zgu |
---|---|
date | Wed, 27 Aug 2014 08:19:12 -0400 |
parents | 78bbf4d43a14 |
children |
comparison
equal
deleted
inserted
replaced
20359:4d3a43351904 | 20360:833b0f92429a |
---|---|
133 _size_of_instances_in_words = 0; | 133 _size_of_instances_in_words = 0; |
134 _size = 0; | 134 _size = 0; |
135 _ref = (HeapWord*) Universe::boolArrayKlassObj(); | 135 _ref = (HeapWord*) Universe::boolArrayKlassObj(); |
136 _buckets = | 136 _buckets = |
137 (KlassInfoBucket*) AllocateHeap(sizeof(KlassInfoBucket) * _num_buckets, | 137 (KlassInfoBucket*) AllocateHeap(sizeof(KlassInfoBucket) * _num_buckets, |
138 mtInternal, 0, AllocFailStrategy::RETURN_NULL); | 138 mtInternal, CURRENT_PC, AllocFailStrategy::RETURN_NULL); |
139 if (_buckets != NULL) { | 139 if (_buckets != NULL) { |
140 _size = _num_buckets; | 140 _size = _num_buckets; |
141 for (int index = 0; index < _size; index++) { | 141 for (int index = 0; index < _size; index++) { |
142 _buckets[index].initialize(); | 142 _buckets[index].initialize(); |
143 } | 143 } |