mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8044796: G1: Enable G1CollectedHeap::stop()
Reviewed-by: brutisso, sjohanss
This commit is contained in:
parent
f3cb0b79b8
commit
5e1811cd0e
4 changed files with 11 additions and 38 deletions
|
@ -501,9 +501,6 @@ void before_exit(JavaThread * thread) {
|
|||
os::infinite_sleep();
|
||||
}
|
||||
|
||||
// Stop any ongoing concurrent GC work
|
||||
Universe::heap()->stop();
|
||||
|
||||
// Terminate watcher thread - must before disenrolling any periodic task
|
||||
if (PeriodicTask::num_tasks() > 0)
|
||||
WatcherThread::stop();
|
||||
|
@ -518,10 +515,8 @@ void before_exit(JavaThread * thread) {
|
|||
StatSampler::disengage();
|
||||
StatSampler::destroy();
|
||||
|
||||
// We do not need to explicitly stop concurrent GC threads because the
|
||||
// JVM will be taken down at a safepoint when such threads are inactive --
|
||||
// except for some concurrent G1 threads, see (comment in)
|
||||
// Threads::destroy_vm().
|
||||
// Stop concurrent GC threads
|
||||
Universe::heap()->stop();
|
||||
|
||||
// Print GC/heap related information.
|
||||
if (PrintGCDetails) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue