8247743: Segmentation fault in debug builds due to stack overflow in find_recur with deep graphs

Replace the recursive algorithm of Node::find() by an iterative one to avoid a stack overflow crash with deep graphs.

Reviewed-by: kvn, thartmann
3 files changed