--- a/src/hotspot/share/gc/shared/genMemoryPools.cpp Fri May 04 09:29:14 2018 +0200
+++ b/src/hotspot/share/gc/shared/genMemoryPools.cpp Fri May 04 11:41:35 2018 +0200
@@ -23,10 +23,12 @@
*/
#include "precompiled.hpp"
-#include "gc/serial/defNewGeneration.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,
@@ -48,6 +50,8 @@
return MemoryUsage(initial_size(), used, committed, maxSize);
}
+#if INCLUDE_SERIALGC
+
SurvivorContiguousSpacePool::SurvivorContiguousSpacePool(DefNewGeneration* young_gen,
const char* name,
size_t max_size,
@@ -72,6 +76,8 @@
return MemoryUsage(initial_size(), used, committed, maxSize);
}
+#endif // INCLUDE_SERIALGC
+
GenerationPool::GenerationPool(Generation* gen,
const char* name,
bool support_usage_threshold) :