changeset 9421:9089740e9f30

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
author jwha
date Tue, 03 Nov 2015 13:03:04 -0800
parents bb7fc011c89c
children cc1666a28b88
files src/share/vm/gc/shared/genCollectedHeap.cpp src/share/vm/gc/shared/genCollectedHeap.hpp
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc/shared/genCollectedHeap.cpp	Thu Nov 12 14:03:14 2015 +0100
+++ b/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/src/share/vm/gc/shared/genCollectedHeap.hpp	Thu Nov 12 14:03:14 2015 +0100
+++ b/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