hotspot/src/share/vm/memory/cardTableRS.cpp
changeset 2881 74a1337e4acc
parent 1388 3677f5f3d66b
child 3261 c7d5aae8d3f7
equal deleted inserted replaced
2748:986f111ef897 2881:74a1337e4acc
    31   _cur_youngergen_card_val(youngergenP1_card),
    31   _cur_youngergen_card_val(youngergenP1_card),
    32   _regions_to_iterate(max_covered_regions - 1)
    32   _regions_to_iterate(max_covered_regions - 1)
    33 {
    33 {
    34 #ifndef SERIALGC
    34 #ifndef SERIALGC
    35   if (UseG1GC) {
    35   if (UseG1GC) {
    36     if (G1RSBarrierUseQueue) {
       
    37       _ct_bs = new G1SATBCardTableLoggingModRefBS(whole_heap,
    36       _ct_bs = new G1SATBCardTableLoggingModRefBS(whole_heap,
    38                                                   max_covered_regions);
    37                                                   max_covered_regions);
    39     } else {
       
    40       _ct_bs = new G1SATBCardTableModRefBS(whole_heap, max_covered_regions);
       
    41     }
       
    42   } else {
    38   } else {
    43     _ct_bs = new CardTableModRefBSForCTRS(whole_heap, max_covered_regions);
    39     _ct_bs = new CardTableModRefBSForCTRS(whole_heap, max_covered_regions);
    44   }
    40   }
    45 #else
    41 #else
    46   _ct_bs = new CardTableModRefBSForCTRS(whole_heap, max_covered_regions);
    42   _ct_bs = new CardTableModRefBSForCTRS(whole_heap, max_covered_regions);