Mercurial > hg > truffle
comparison src/share/vm/runtime/vframeArray.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 | 3d2ab563047a |
children | 1d7922586cf6 |
comparison
equal
deleted
inserted
replaced
6174:74533f63b116 | 6197:d2a62e0f25eb |
---|---|
441 RegisterMap *reg_map, frame sender, frame caller, frame self) { | 441 RegisterMap *reg_map, frame sender, frame caller, frame self) { |
442 | 442 |
443 // Allocate the vframeArray | 443 // Allocate the vframeArray |
444 vframeArray * result = (vframeArray*) AllocateHeap(sizeof(vframeArray) + // fixed part | 444 vframeArray * result = (vframeArray*) AllocateHeap(sizeof(vframeArray) + // fixed part |
445 sizeof(vframeArrayElement) * (chunk->length() - 1), // variable part | 445 sizeof(vframeArrayElement) * (chunk->length() - 1), // variable part |
446 "vframeArray::allocate"); | 446 mtCompiler); |
447 result->_frames = chunk->length(); | 447 result->_frames = chunk->length(); |
448 result->_owner_thread = thread; | 448 result->_owner_thread = thread; |
449 result->_sender = sender; | 449 result->_sender = sender; |
450 result->_caller = caller; | 450 result->_caller = caller; |
451 result->_original = self; | 451 result->_original = self; |