changeset 38187:f1879f6d7e63

8155946: Minimal VM fails to built after 8154153: PS: Restore preserved marks in parallel Reviewed-by: stefank
author lmesnik
date Wed, 04 May 2016 17:47:05 +0300
parents ccaa890f8617
children 942dde137b5d ff9ac612c723 05ab1ee04bf2
files hotspot/src/share/vm/gc/shared/preservedMarks.cpp
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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();