30 // This kind of "BarrierSet" allows a "CollectedHeap" to detect and |
30 // This kind of "BarrierSet" allows a "CollectedHeap" to detect and |
31 // enumerate ref fields that have been modified (since the last |
31 // enumerate ref fields that have been modified (since the last |
32 // enumeration.) |
32 // enumeration.) |
33 |
33 |
34 uintx GenRemSet::max_alignment_constraint(Name nm) { |
34 uintx GenRemSet::max_alignment_constraint(Name nm) { |
35 switch (nm) { |
35 assert(nm == GenRemSet::CardTable, "Unrecognized GenRemSet type."); |
36 case GenRemSet::CardTable: |
36 return CardTableRS::ct_max_alignment_constraint(); |
37 return CardTableRS::ct_max_alignment_constraint(); |
|
38 default: |
|
39 guarantee(false, "Unrecognized GenRemSet type."); |
|
40 return (0); // Make Windows compiler happy |
|
41 } |
|
42 } |
37 } |
43 |
38 |
44 class HasAccumulatedModifiedOopsClosure : public KlassClosure { |
39 class HasAccumulatedModifiedOopsClosure : public KlassClosure { |
45 bool _found; |
40 bool _found; |
46 public: |
41 public: |