hotspot/src/share/vm/opto/macro.cpp
changeset 30183 a6588c0a3259
parent 29086 74100114a95a
child 30248 5c6dacbd17ae
equal deleted inserted replaced
29583:acaac5dcf557 30183:a6588c0a3259
  2533         BoolNode* bol = cmp->unique_out()->as_Bool();
  2533         BoolNode* bol = cmp->unique_out()->as_Bool();
  2534         assert((bol->outcnt() == 1) && bol->unique_out()->is_If() &&
  2534         assert((bol->outcnt() == 1) && bol->unique_out()->is_If() &&
  2535                (bol->_test._test == BoolTest::ne), "");
  2535                (bol->_test._test == BoolTest::ne), "");
  2536         IfNode* ifn = bol->unique_out()->as_If();
  2536         IfNode* ifn = bol->unique_out()->as_If();
  2537         assert((ifn->outcnt() == 2) &&
  2537         assert((ifn->outcnt() == 2) &&
  2538                ifn->proj_out(1)->is_uncommon_trap_proj(Deoptimization::Reason_rtm_state_change), "");
  2538                ifn->proj_out(1)->is_uncommon_trap_proj(Deoptimization::Reason_rtm_state_change) != NULL, "");
  2539 #endif
  2539 #endif
  2540         Node* repl = n->in(1);
  2540         Node* repl = n->in(1);
  2541         if (!_has_locks) {
  2541         if (!_has_locks) {
  2542           // Remove RTM state check if there are no locks in the code.
  2542           // Remove RTM state check if there are no locks in the code.
  2543           // Replace input to compare the same value.
  2543           // Replace input to compare the same value.