[8u] request for approval: 8174164 & 8175097: SafePointNode::_replaced_nodes breaks with irreducible loops
I'd like to backport 8174164 (and its test case 8175097) to 8u as it's
an issue reported by one of our (Red Hat) customers. The patch doesn't
apply cleanly: the part of library_call.cpp fails to apply but given
library_call.cpp in 8u doesn't need to be changed for that fix, that
part of the patch can simply be removed. So I assume no re-review is
necessary. It was pushed to jdk9 1 week ago and hasn't caused any follow
up bugs that I know of.