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, |