changeset 768 | d0bebc7eefc2 |
parent 619 | ba19e7bd22cf |
child 781 | e1baa9c8f16f |
--- a/hotspot/src/share/vm/opto/node.cpp Tue Jun 24 10:43:29 2008 -0700 +++ b/hotspot/src/share/vm/opto/node.cpp Tue Jun 24 16:00:14 2008 -0700 @@ -1387,7 +1387,7 @@ } #ifdef ASSERT // Search along debug_orig edges last: - for (Node* orig = n->debug_orig(); orig != NULL; orig = orig->debug_orig()) { + for (Node* orig = n->debug_orig(); orig != NULL && n != orig; orig = orig->debug_orig()) { if (NotANode(orig)) break; find_recur( result, orig, idx, only_ctrl, old_space, new_space ); }