8141356: Explicitly stop CMS threads during VM termination.
Summary: GenCollectedHeap::stop() is not implemented which is supposed to stop CMS threads during VM termination.
Reviewed-by: jmasa, kbarrett
Contributed-by: jwha@google.com
--- a/hotspot/src/share/vm/gc/shared/genCollectedHeap.cpp Thu Nov 12 14:03:14 2015 +0100
+++ b/hotspot/src/share/vm/gc/shared/genCollectedHeap.cpp Tue Nov 03 13:03:04 2015 -0800
@@ -1319,3 +1319,11 @@
}
return retVal;
}
+
+void GenCollectedHeap::stop() {
+#if INCLUDE_ALL_GCS
+ if (UseConcMarkSweepGC) {
+ ConcurrentMarkSweepThread::stop();
+ }
+#endif
+}
--- a/hotspot/src/share/vm/gc/shared/genCollectedHeap.hpp Thu Nov 12 14:03:14 2015 +0100
+++ b/hotspot/src/share/vm/gc/shared/genCollectedHeap.hpp Tue Nov 03 13:03:04 2015 -0800
@@ -499,6 +499,9 @@
protected:
void gc_prologue(bool full);
void gc_epilogue(bool full);
+
+public:
+ void stop();
};
#endif // SHARE_VM_GC_SHARED_GENCOLLECTEDHEAP_HPP