--- a/hotspot/src/share/vm/opto/macro.cpp Fri Apr 17 10:53:31 2015 +0200
+++ b/hotspot/src/share/vm/opto/macro.cpp Fri Apr 17 14:37:20 2015 -0700
@@ -2543,7 +2543,7 @@
(bol->_test._test == BoolTest::ne), "");
IfNode* ifn = bol->unique_out()->as_If();
assert((ifn->outcnt() == 2) &&
- ifn->proj_out(1)->is_uncommon_trap_proj(Deoptimization::Reason_rtm_state_change), "");
+ ifn->proj_out(1)->is_uncommon_trap_proj(Deoptimization::Reason_rtm_state_change) != NULL, "");
#endif
Node* repl = n->in(1);
if (!_has_locks) {