hotspot/src/share/vm/gc/shared/preservedMarks.cpp
changeset 38187 f1879f6d7e63
parent 38080 bb02a3ad3b0a
child 39228 32ce84798166
--- a/hotspot/src/share/vm/gc/shared/preservedMarks.cpp	Wed May 04 13:12:23 2016 +0200
+++ b/hotspot/src/share/vm/gc/shared/preservedMarks.cpp	Wed May 04 17:47:05 2016 +0300
@@ -23,11 +23,14 @@
  */
 
 #include "precompiled.hpp"
-#include "gc/parallel/gcTaskManager.hpp"
 #include "gc/shared/preservedMarks.inline.hpp"
 #include "gc/shared/workgroup.hpp"
 #include "memory/allocation.inline.hpp"
 #include "memory/resourceArea.hpp"
+#include "utilities/macros.hpp"
+#if INCLUDE_ALL_GCS
+#include "gc/parallel/gcTaskManager.hpp"
+#endif
 
 void PreservedMarks::restore() {
   while (!_stack.is_empty()) {
@@ -108,6 +111,7 @@
   workers->run_task(&task);
 }
 
+#if INCLUDE_ALL_GCS
 class ParRestoreGCTask : public GCTask {
 private:
   const uint _id;
@@ -146,6 +150,7 @@
   }
   gc_task_manager->execute_and_wait(q);
 }
+#endif
 
 void PreservedMarksSet::reclaim() {
   assert_empty();