Skip to content
Permalink
Browse files
8244510: Shenandoah: invert SHC2Support::is_in_cset condition
Reviewed-by: rkennke, roland
  • Loading branch information
shipilev committed May 7, 2020
1 parent 1ac3811 commit b231ad70c89e8fb223643bd48c33d6ab7e7ab2bf
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp
@@ -931,16 +931,16 @@ void ShenandoahBarrierC2Support::test_in_cset(Node*& ctrl, Node*& not_cset_ctrl,
DEBUG_ONLY(phase->C->get_adr_type(Compile::AliasIdxRaw)) NOT_DEBUG(NULL),
TypeInt::BYTE, MemNode::unordered);
Node* cset_cmp = new CmpINode(cset_load, igvn.zerocon(T_INT));
Node* cset_bool = new BoolNode(cset_cmp, BoolTest::eq);
Node* cset_bool = new BoolNode(cset_cmp, BoolTest::ne);

IfNode* cset_iff = new IfNode(old_ctrl, cset_bool, PROB_UNLIKELY(0.999), COUNT_UNKNOWN);
not_cset_ctrl = new IfTrueNode(cset_iff);
ctrl = new IfFalseNode(cset_iff);
ctrl = new IfTrueNode(cset_iff);
not_cset_ctrl = new IfFalseNode(cset_iff);

IdealLoopTree *loop = phase->get_loop(old_ctrl);
phase->register_control(cset_iff, loop, old_ctrl);
phase->register_control(not_cset_ctrl, loop, cset_iff);
phase->register_control(ctrl, loop, cset_iff);
phase->register_control(not_cset_ctrl, loop, cset_iff);

phase->set_ctrl(cset_addr, phase->C->root());

0 comments on commit b231ad7

Please sign in to comment.