mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-08 22:19:18 +00:00
8040245: G1: VM hangs during shutdown
Temporarily disable the shutdown of the concurrent GC threads introduced in JDK-8037112 Reviewed-by: brutisso, tschatzl, jmasa
This commit is contained in:
parent
5d967f0aea
commit
820ae7109e
@ -2152,6 +2152,12 @@ jint G1CollectedHeap::initialize() {
|
||||
}
|
||||
|
||||
void G1CollectedHeap::stop() {
|
||||
#if 0
|
||||
// Stopping concurrent worker threads is currently disabled until
|
||||
// some bugs in concurrent mark has been resolve. Without fixing
|
||||
// those bugs first we risk haning during VM exit when trying to
|
||||
// stop these threads.
|
||||
|
||||
// Abort any ongoing concurrent root region scanning and stop all
|
||||
// concurrent threads. We do this to make sure these threads do
|
||||
// not continue to execute and access resources (e.g. gclog_or_tty)
|
||||
@ -2159,6 +2165,7 @@ void G1CollectedHeap::stop() {
|
||||
_cm->root_regions()->abort();
|
||||
_cm->root_regions()->wait_until_scan_finished();
|
||||
stop_conc_gc_threads();
|
||||
#endif
|
||||
}
|
||||
|
||||
size_t G1CollectedHeap::conservative_max_heap_alignment() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user