8071805: BarrierSet::Other is not used and should be removed
Remove all occurences of BarrierSet::Other because the barrier set kind is never set to Other. Reviewed-by: tschatzl, kbarrett
This commit is contained in:
parent
3e6220b1ab
commit
00d9c7a2d1
@ -143,7 +143,6 @@ static void do_oop_store(InterpreterMacroAssembler* _masm,
|
||||
}
|
||||
break;
|
||||
case BarrierSet::ModRef:
|
||||
case BarrierSet::Other:
|
||||
ShouldNotReachHere();
|
||||
break;
|
||||
default:
|
||||
|
@ -115,7 +115,6 @@ static void do_oop_store(InterpreterMacroAssembler* _masm,
|
||||
}
|
||||
break;
|
||||
case BarrierSet::ModRef:
|
||||
case BarrierSet::Other:
|
||||
ShouldNotReachHere();
|
||||
break;
|
||||
default :
|
||||
|
@ -185,7 +185,6 @@ static void do_oop_store(InterpreterMacroAssembler* _masm,
|
||||
}
|
||||
break;
|
||||
case BarrierSet::ModRef:
|
||||
case BarrierSet::Other:
|
||||
if (val == noreg) {
|
||||
__ movptr(obj, NULL_WORD);
|
||||
} else {
|
||||
|
@ -189,7 +189,6 @@ static void do_oop_store(InterpreterMacroAssembler* _masm,
|
||||
}
|
||||
break;
|
||||
case BarrierSet::ModRef:
|
||||
case BarrierSet::Other:
|
||||
if (val == noreg) {
|
||||
__ store_heap_oop_null(obj);
|
||||
} else {
|
||||
|
@ -1432,7 +1432,6 @@ void LIRGenerator::pre_barrier(LIR_Opr addr_opr, LIR_Opr pre_val,
|
||||
// No pre barriers
|
||||
break;
|
||||
case BarrierSet::ModRef:
|
||||
case BarrierSet::Other:
|
||||
// No pre barriers
|
||||
break;
|
||||
default :
|
||||
@ -1454,7 +1453,6 @@ void LIRGenerator::post_barrier(LIR_OprDesc* addr, LIR_OprDesc* new_val) {
|
||||
CardTableModRef_post_barrier(addr, new_val);
|
||||
break;
|
||||
case BarrierSet::ModRef:
|
||||
case BarrierSet::Other:
|
||||
// No post barriers
|
||||
break;
|
||||
default :
|
||||
|
@ -39,8 +39,7 @@ public:
|
||||
CardTableModRef,
|
||||
CardTableExtension,
|
||||
G1SATBCT,
|
||||
G1SATBCTLogging,
|
||||
Other
|
||||
G1SATBCTLogging
|
||||
};
|
||||
|
||||
enum Flags {
|
||||
|
@ -1528,7 +1528,6 @@ void GraphKit::pre_barrier(bool do_load,
|
||||
case BarrierSet::ModRef:
|
||||
break;
|
||||
|
||||
case BarrierSet::Other:
|
||||
default :
|
||||
ShouldNotReachHere();
|
||||
|
||||
@ -1547,7 +1546,6 @@ bool GraphKit::can_move_pre_barrier() const {
|
||||
case BarrierSet::ModRef:
|
||||
return true; // There is no pre-barrier
|
||||
|
||||
case BarrierSet::Other:
|
||||
default :
|
||||
ShouldNotReachHere();
|
||||
}
|
||||
@ -1578,7 +1576,6 @@ void GraphKit::post_barrier(Node* ctl,
|
||||
case BarrierSet::ModRef:
|
||||
break;
|
||||
|
||||
case BarrierSet::Other:
|
||||
default :
|
||||
ShouldNotReachHere();
|
||||
|
||||
|
@ -2213,7 +2213,6 @@ typedef TwoOopHashtable<Symbol*, mtClass> SymbolTwoOopHashtable;
|
||||
declare_constant(BarrierSet::CardTableExtension) \
|
||||
declare_constant(BarrierSet::G1SATBCT) \
|
||||
declare_constant(BarrierSet::G1SATBCTLogging) \
|
||||
declare_constant(BarrierSet::Other) \
|
||||
\
|
||||
declare_constant(BlockOffsetSharedArray::LogN) \
|
||||
declare_constant(BlockOffsetSharedArray::LogN_words) \
|
||||
|
Loading…
Reference in New Issue
Block a user