Mercurial > hg > graal-compiler
comparison src/share/vm/oops/symbol.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 | fc9d8850ab8b |
children | 1d7922586cf6 |
comparison
equal
deleted
inserted
replaced
6174:74533f63b116 | 6197:d2a62e0f25eb |
---|---|
36 } | 36 } |
37 } | 37 } |
38 | 38 |
39 void* Symbol::operator new(size_t sz, int len, TRAPS) { | 39 void* Symbol::operator new(size_t sz, int len, TRAPS) { |
40 int alloc_size = object_size(len)*HeapWordSize; | 40 int alloc_size = object_size(len)*HeapWordSize; |
41 address res = (address) AllocateHeap(alloc_size, "symbol"); | 41 address res = (address) AllocateHeap(alloc_size, mtSymbol); |
42 DEBUG_ONLY(set_allocation_type(res, ResourceObj::C_HEAP);) | 42 DEBUG_ONLY(set_allocation_type(res, ResourceObj::C_HEAP);) |
43 return res; | 43 return res; |
44 } | 44 } |
45 | 45 |
46 void* Symbol::operator new(size_t sz, int len, Arena* arena, TRAPS) { | 46 void* Symbol::operator new(size_t sz, int len, Arena* arena, TRAPS) { |