Mercurial > hg > graal-compiler
comparison src/share/vm/utilities/numberSeq.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 | bbc900c2482a |
children | 3c9db54c2660 |
comparison
equal
deleted
inserted
replaced
6174:74533f63b116 | 6197:d2a62e0f25eb |
---|---|
131 } | 131 } |
132 | 132 |
133 | 133 |
134 TruncatedSeq::TruncatedSeq(int length, double alpha): | 134 TruncatedSeq::TruncatedSeq(int length, double alpha): |
135 AbsSeq(alpha), _length(length), _next(0) { | 135 AbsSeq(alpha), _length(length), _next(0) { |
136 _sequence = NEW_C_HEAP_ARRAY(double, _length); | 136 _sequence = NEW_C_HEAP_ARRAY(double, _length, mtInternal); |
137 for (int i = 0; i < _length; ++i) | 137 for (int i = 0; i < _length; ++i) |
138 _sequence[i] = 0.0; | 138 _sequence[i] = 0.0; |
139 } | 139 } |
140 | 140 |
141 TruncatedSeq::~TruncatedSeq() { | 141 TruncatedSeq::~TruncatedSeq() { |
142 FREE_C_HEAP_ARRAY(double, _sequence); | 142 FREE_C_HEAP_ARRAY(double, _sequence, mtGC); |
143 } | 143 } |
144 | 144 |
145 void TruncatedSeq::add(double val) { | 145 void TruncatedSeq::add(double val) { |
146 AbsSeq::add(val); | 146 AbsSeq::add(val); |
147 | 147 |