8153792: EA: assert(ptn->as_LocalVar()->edge_count() > 0) failed: sanity when compiling compareAndExchange

Reviewed-by: kvn, psandoz
This commit is contained in:
Aleksey Shipilev 2016-05-12 12:46:07 +03:00
parent 8adbc20c87
commit 5e2fa37504

View File

@ -721,7 +721,8 @@ void ConnectionGraph::add_final_edges(Node *n) {
break;
}
#endif
if (opcode == Op_GetAndSetP || opcode == Op_GetAndSetN) {
if (opcode == Op_GetAndSetP || opcode == Op_GetAndSetN ||
opcode == Op_CompareAndExchangeN || opcode == Op_CompareAndExchangeP) {
add_local_var_and_edge(n, PointsToNode::NoEscape, adr, NULL);
}
if (adr_type->isa_oopptr() ||