# HG changeset patch # User lmesnik # Date 1462373225 -10800 # Node ID f1879f6d7e63a2ea6b89db69837bfa8e7c48f5f2 # Parent ccaa890f86171cabf9fbe05de8a6df386cfe6819 8155946: Minimal VM fails to built after 8154153: PS: Restore preserved marks in parallel Reviewed-by: stefank diff -r ccaa890f8617 -r f1879f6d7e63 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();