8155946: Minimal VM fails to built after 8154153: PS: Restore preserved marks in parallel
authorlmesnik
Wed, 04 May 2016 17:47:05 +0300
changeset 38187 f1879f6d7e63
parent 38186 ccaa890f8617
child 38189 942dde137b5d
child 38190 ff9ac612c723
child 38192 05ab1ee04bf2
8155946: Minimal VM fails to built after 8154153: PS: Restore preserved marks in parallel Reviewed-by: stefank
hotspot/src/share/vm/gc/shared/preservedMarks.cpp
--- 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();