Mercurial > hg > graal-compiler
comparison src/share/vm/services/memoryPool.hpp @ 8002:8391fdd36e1f
Merge
author | dlong |
---|---|
date | Sun, 27 Jan 2013 01:07:09 -0800 |
parents | db9981fd3124 |
children | dbd5837b342f |
comparison
equal
deleted
inserted
replaced
7946:6fbe8a57549d | 8002:8391fdd36e1f |
---|---|
28 #include "gc_implementation/shared/mutableSpace.hpp" | 28 #include "gc_implementation/shared/mutableSpace.hpp" |
29 #include "memory/defNewGeneration.hpp" | 29 #include "memory/defNewGeneration.hpp" |
30 #include "memory/heap.hpp" | 30 #include "memory/heap.hpp" |
31 #include "memory/space.hpp" | 31 #include "memory/space.hpp" |
32 #include "services/memoryUsage.hpp" | 32 #include "services/memoryUsage.hpp" |
33 #ifndef SERIALGC | 33 #include "utilities/macros.hpp" |
34 #if INCLUDE_ALL_GCS | |
34 #include "gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.hpp" | 35 #include "gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.hpp" |
35 #endif | 36 #endif // INCLUDE_ALL_GCS |
36 | 37 |
37 // A memory pool represents the memory area that the VM manages. | 38 // A memory pool represents the memory area that the VM manages. |
38 // The Java virtual machine has at least one memory pool | 39 // The Java virtual machine has at least one memory pool |
39 // and it may create or remove memory pools during execution. | 40 // and it may create or remove memory pools during execution. |
40 // A memory pool can belong to the heap or the non-heap memory. | 41 // A memory pool can belong to the heap or the non-heap memory. |
183 size_t committed_in_bytes() { | 184 size_t committed_in_bytes() { |
184 return _gen->from()->capacity(); | 185 return _gen->from()->capacity(); |
185 } | 186 } |
186 }; | 187 }; |
187 | 188 |
188 #ifndef SERIALGC | 189 #if INCLUDE_ALL_GCS |
189 class CompactibleFreeListSpacePool : public CollectedMemoryPool { | 190 class CompactibleFreeListSpacePool : public CollectedMemoryPool { |
190 private: | 191 private: |
191 CompactibleFreeListSpace* _space; | 192 CompactibleFreeListSpace* _space; |
192 public: | 193 public: |
193 CompactibleFreeListSpacePool(CompactibleFreeListSpace* space, | 194 CompactibleFreeListSpacePool(CompactibleFreeListSpace* space, |
197 bool support_usage_threshold); | 198 bool support_usage_threshold); |
198 | 199 |
199 MemoryUsage get_memory_usage(); | 200 MemoryUsage get_memory_usage(); |
200 size_t used_in_bytes() { return _space->used(); } | 201 size_t used_in_bytes() { return _space->used(); } |
201 }; | 202 }; |
202 #endif // SERIALGC | 203 #endif // INCLUDE_ALL_GCS |
203 | 204 |
204 | 205 |
205 class GenerationPool : public CollectedMemoryPool { | 206 class GenerationPool : public CollectedMemoryPool { |
206 private: | 207 private: |
207 Generation* _gen; | 208 Generation* _gen; |