mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-16 18:00:29 +00:00
8141356: Explicitly stop CMS threads during VM termination
GenCollectedHeap::stop() is not implemented which is supposed to stop CMS threads during VM termination. Reviewed-by: jmasa, kbarrett
This commit is contained in:
parent
0580d65a1c
commit
68ffb0bf12
@ -1319,3 +1319,11 @@ jlong GenCollectedHeap::millis_since_last_gc() {
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
void GenCollectedHeap::stop() {
|
||||
#if INCLUDE_ALL_GCS
|
||||
if (UseConcMarkSweepGC) {
|
||||
ConcurrentMarkSweepThread::stop();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -499,6 +499,9 @@ private:
|
||||
protected:
|
||||
void gc_prologue(bool full);
|
||||
void gc_epilogue(bool full);
|
||||
|
||||
public:
|
||||
void stop();
|
||||
};
|
||||
|
||||
#endif // SHARE_VM_GC_SHARED_GENCOLLECTEDHEAP_HPP
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user