8037958: ConcurrentMark::cleanup leaks BitMaps if VerifyDuringGC is enabled

Wed, 26 Mar 2014 10:54:52 +0100

author
mgerdin
date
Wed, 26 Mar 2014 10:54:52 +0100
changeset 6977
4dfab3faf5e7
parent 6976
76b588255908
child 6978
30c99d8e0f02

8037958: ConcurrentMark::cleanup leaks BitMaps if VerifyDuringGC is enabled
Summary: Allocate temporary BitMaps in the VMThread's resource area
Reviewed-by: stefank, sjohanss

src/share/vm/gc_implementation/g1/concurrentMark.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Thu Feb 27 10:36:50 2014 +0100
     1.2 +++ b/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Wed Mar 26 10:54:52 2014 +0100
     1.3 @@ -2035,8 +2035,8 @@
     1.4      // that calculated by walking the marking bitmap.
     1.5  
     1.6      // Bitmaps to hold expected values
     1.7 -    BitMap expected_region_bm(_region_bm.size(), false);
     1.8 -    BitMap expected_card_bm(_card_bm.size(), false);
     1.9 +    BitMap expected_region_bm(_region_bm.size(), true);
    1.10 +    BitMap expected_card_bm(_card_bm.size(), true);
    1.11  
    1.12      G1ParVerifyFinalCountTask g1_par_verify_task(g1h,
    1.13                                                   &_region_bm,

mercurial