comparison src/share/vm/libadt/vectset.cpp @ 6197:d2a62e0f25eb

6995781: Native Memory Tracking (Phase 1) 7151532: DCmd for hotspot native memory tracking Summary: Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd Reviewed-by: acorn, coleenp, fparain
author zgu
date Thu, 28 Jun 2012 17:03:16 -0400
parents f350490a45fd
children b9a9ed0f8eeb
comparison
equal deleted inserted replaced
6174:74533f63b116 6197:d2a62e0f25eb
360 uint next(void) { ++vsi; return vsi.elem; } 360 uint next(void) { ++vsi; return vsi.elem; }
361 int test(void) { return vsi.test(); } 361 int test(void) { return vsi.test(); }
362 }; 362 };
363 363
364 SetI_ *VectorSet::iterate(uint &elem) const { 364 SetI_ *VectorSet::iterate(uint &elem) const {
365 return new(ResourceObj::C_HEAP) VSetI_(this, elem); 365 return new(ResourceObj::C_HEAP, mtInternal) VSetI_(this, elem);
366 } 366 }
367 367
368 //============================================================================= 368 //=============================================================================
369 //------------------------------next------------------------------------------- 369 //------------------------------next-------------------------------------------
370 // Find and return the next element of a vector set, or return garbage and 370 // Find and return the next element of a vector set, or return garbage and