< prev index next >
src/share/vm/gc/shared/genCollectedHeap.hpp
Print this page
rev 9260 : JDK-8141356: Explicitly stop CMS threads during VM termination.
Summary: GenCollectedHeap::stop() is not implemented which is supposed to stop
CMS threads during VM termination.
@@ -23,10 +23,11 @@
*/
#ifndef SHARE_VM_GC_SHARED_GENCOLLECTEDHEAP_HPP
#define SHARE_VM_GC_SHARED_GENCOLLECTEDHEAP_HPP
+#include "gc/cms/concurrentMarkSweepThread.hpp"
#include "gc/shared/adaptiveSizePolicy.hpp"
#include "gc/shared/collectedHeap.hpp"
#include "gc/shared/collectorPolicy.hpp"
#include "gc/shared/generation.hpp"
@@ -497,8 +498,15 @@
void record_gen_tops_before_GC() PRODUCT_RETURN;
protected:
void gc_prologue(bool full);
void gc_epilogue(bool full);
+
+public:
+ void stop() {
+ if (UseConcMarkSweepGC) {
+ ConcurrentMarkSweepThread::stop();
+ }
+ }
};
#endif // SHARE_VM_GC_SHARED_GENCOLLECTEDHEAP_HPP
< prev index next >