< prev index next >
src/hotspot/share/gc/shared/genMemoryPools.cpp
Print this page
*** 21,34 ****
* questions.
*
*/
#include "precompiled.hpp"
- #include "gc/serial/defNewGeneration.hpp"
#include "gc/shared/generation.hpp"
#include "gc/shared/genMemoryPools.hpp"
#include "gc/shared/space.hpp"
ContiguousSpacePool::ContiguousSpacePool(ContiguousSpace* space,
const char* name,
size_t max_size,
bool support_usage_threshold) :
--- 21,36 ----
* questions.
*
*/
#include "precompiled.hpp"
#include "gc/shared/generation.hpp"
#include "gc/shared/genMemoryPools.hpp"
#include "gc/shared/space.hpp"
+ #if INCLUDE_SERIALGC
+ #include "gc/serial/defNewGeneration.hpp"
+ #endif
ContiguousSpacePool::ContiguousSpacePool(ContiguousSpace* space,
const char* name,
size_t max_size,
bool support_usage_threshold) :
*** 46,55 ****
--- 48,59 ----
size_t committed = _space->capacity();
return MemoryUsage(initial_size(), used, committed, maxSize);
}
+ #if INCLUDE_SERIALGC
+
SurvivorContiguousSpacePool::SurvivorContiguousSpacePool(DefNewGeneration* young_gen,
const char* name,
size_t max_size,
bool support_usage_threshold) :
CollectedMemoryPool(name, young_gen->from()->capacity(), max_size,
*** 70,79 ****
--- 74,85 ----
size_t committed = committed_in_bytes();
return MemoryUsage(initial_size(), used, committed, maxSize);
}
+ #endif // INCLUDE_SERIALGC
+
GenerationPool::GenerationPool(Generation* gen,
const char* name,
bool support_usage_threshold) :
CollectedMemoryPool(name, gen->capacity(), gen->max_capacity(),
support_usage_threshold), _gen(gen) {
< prev index next >