< prev index next >
src/share/vm/memory/universe.cpp
Print this page
@@ -78,10 +78,12 @@
#include "gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.hpp"
#include "gc_implementation/concurrentMarkSweep/cmsCollectorPolicy.hpp"
#include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
#include "gc_implementation/g1/g1CollectorPolicy_ext.hpp"
#include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp"
+#include "gc_implementation/shenandoah/shenandoahHeap.hpp"
+#include "gc_implementation/shenandoah/shenandoahCollectorPolicy.hpp"
#endif // INCLUDE_ALL_GCS
PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
// Known objects
@@ -813,10 +815,19 @@
Universe::_collectedHeap = g1h;
#else // INCLUDE_ALL_GCS
fatal("UseG1GC not supported in java kernel vm.");
#endif // INCLUDE_ALL_GCS
+ } else if (UseShenandoahGC) {
+#if INCLUDE_ALL_GCS
+ ShenandoahCollectorPolicy* shcp = new ShenandoahCollectorPolicy();
+ ShenandoahHeap* sh = new ShenandoahHeap(shcp);
+ Universe::_collectedHeap = sh;
+#else // INCLUDE_ALL_GCS
+ fatal("UseShenandoahGC not supported in java kernel vm.");
+#endif // INCLUDE_ALL_GCS
+
} else {
GenCollectorPolicy *gc_policy;
if (UseSerialGC) {
gc_policy = new MarkSweepPolicy();
< prev index next >