8141356: Explicitly stop CMS threads during VM termination.
authorjwha
Tue, 03 Nov 2015 13:03:04 -0800
changeset 34133 5d761539ac2c
parent 34132 aa73af640c61
child 34134 d4fd14f628fb
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
hotspot/src/share/vm/gc/shared/genCollectedHeap.cpp
hotspot/src/share/vm/gc/shared/genCollectedHeap.hpp
--- 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