6718676: putback for 6604014 is incomplete

Reviewed-by: kvn, jrose
This commit is contained in:
Tom Rodriguez 2008-06-24 16:00:14 -07:00
parent a671e7c7b5
commit 873da1efe8
108 changed files with 4499 additions and 1809 deletions

View file

@ -1387,7 +1387,7 @@ static void find_recur( Node* &result, Node *n, int idx, bool only_ctrl,
}
#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 );
}