Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/sparsePRT.hpp @ 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 | 97ba643ea3ed |
children | b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
6174:74533f63b116 | 6197:d2a62e0f25eb |
---|---|
40 // deletions may be done in single-threaded code. This allows us to allow | 40 // deletions may be done in single-threaded code. This allows us to allow |
41 // unsynchronized reads/iterations, as long as expansions caused by | 41 // unsynchronized reads/iterations, as long as expansions caused by |
42 // insertions only enqueue old versions for deletions, but do not delete | 42 // insertions only enqueue old versions for deletions, but do not delete |
43 // old versions synchronously. | 43 // old versions synchronously. |
44 | 44 |
45 class SparsePRTEntry: public CHeapObj { | 45 class SparsePRTEntry: public CHeapObj<mtGC> { |
46 public: | 46 public: |
47 enum SomePublicConstants { | 47 enum SomePublicConstants { |
48 NullEntry = -1, | 48 NullEntry = -1, |
49 UnrollFactor = 4 | 49 UnrollFactor = 4 |
50 }; | 50 }; |
99 | 99 |
100 inline CardIdx_t card(int i) const { return _cards[i]; } | 100 inline CardIdx_t card(int i) const { return _cards[i]; } |
101 }; | 101 }; |
102 | 102 |
103 | 103 |
104 class RSHashTable : public CHeapObj { | 104 class RSHashTable : public CHeapObj<mtGC> { |
105 | 105 |
106 friend class RSHashTableIter; | 106 friend class RSHashTableIter; |
107 | 107 |
108 enum SomePrivateConstants { | 108 enum SomePrivateConstants { |
109 NullEntry = -1 | 109 NullEntry = -1 |