8040245: G1: VM hangs during shutdown

Thu, 17 Apr 2014 18:47:15 +0200

author
pliden
date
Thu, 17 Apr 2014 18:47:15 +0200
changeset 6691
e4d318eea75a
parent 6690
1772223a25a2
child 6692
487f09bf44e0

8040245: G1: VM hangs during shutdown
Summary: temporarily disable the shutdown of the concurrent GC threads introduced in JDK-8037112
Reviewed-by: brutisso, tschatzl, jmasa

src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp	Fri Apr 11 11:00:12 2014 +0200
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp	Thu Apr 17 18:47:15 2014 +0200
     1.3 @@ -2186,6 +2186,12 @@
     1.4  }
     1.5  
     1.6  void G1CollectedHeap::stop() {
     1.7 +#if 0
     1.8 +  // Stopping concurrent worker threads is currently disabled until
     1.9 +  // some bugs in concurrent mark has been resolve. Without fixing
    1.10 +  // those bugs first we risk haning during VM exit when trying to
    1.11 +  // stop these threads.
    1.12 +
    1.13    // Abort any ongoing concurrent root region scanning and stop all
    1.14    // concurrent threads. We do this to make sure these threads do
    1.15    // not continue to execute and access resources (e.g. gclog_or_tty)
    1.16 @@ -2193,6 +2199,7 @@
    1.17    _cm->root_regions()->abort();
    1.18    _cm->root_regions()->wait_until_scan_finished();
    1.19    stop_conc_gc_threads();
    1.20 +#endif
    1.21  }
    1.22  
    1.23  size_t G1CollectedHeap::conservative_max_heap_alignment() {

mercurial