< prev index next >
src/hotspot/share/opto/compile.cpp
Print this page
rev 47953 : Implement flag to generate write-barriers without membars.
@@ -3379,11 +3379,11 @@
}
break;
}
case Op_If: {
#ifdef ASSERT
- if (ShenandoahWriteBarrierNode::is_evacuation_in_progress_test(n->as_If())) {
+ if (ShenandoahWriteBarrierNode::is_evacuation_in_progress_test(n->as_If()) && ShenandoahWriteBarrierMemBar) {
Node* c = n->in(0);
int count = 0;
for (;;) {
assert(c->is_Proj(), "proj expected");
MemBarNode* mb = c->in(0)->as_MemBar();
< prev index next >