From cc2cdc4e6586cf7265237fb260af97790976cde5 Mon Sep 17 00:00:00 2001 From: never Date: Tue, 8 Dec 2009 16:27:21 -0800 Subject: [PATCH] 6908167: jbb2005, OptimizeStringConcat causes assert in EA Reviewed-by: kvn --- src/share/vm/opto/graphKit.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/share/vm/opto/graphKit.cpp b/src/share/vm/opto/graphKit.cpp index 1b5eb5442..3a42be98b 100644 --- a/src/share/vm/opto/graphKit.cpp +++ b/src/share/vm/opto/graphKit.cpp @@ -1714,6 +1714,11 @@ void GraphKit::replace_call(CallNode* call, Node* result) { C->gvn_replace_by(callprojs.catchall_catchproj, C->top()); C->gvn_replace_by(callprojs.catchall_memproj, C->top()); C->gvn_replace_by(callprojs.catchall_ioproj, C->top()); + + // Replace the old exception object with top + if (callprojs.exobj != NULL) { + C->gvn_replace_by(callprojs.exobj, C->top()); + } } else { GraphKit ekit(ejvms); -- GitLab