6908167: jbb2005, OptimizeStringConcat causes assert in EA
authornever
Tue, 08 Dec 2009 16:27:21 -0800
changeset 4469 2adc28d44986
parent 4453 a431438150d4
child 4470 1e6edcab3109
6908167: jbb2005, OptimizeStringConcat causes assert in EA Reviewed-by: kvn
hotspot/src/share/vm/opto/graphKit.cpp
--- a/hotspot/src/share/vm/opto/graphKit.cpp	Wed Dec 02 13:29:00 2009 -0800
+++ b/hotspot/src/share/vm/opto/graphKit.cpp	Tue Dec 08 16:27:21 2009 -0800
@@ -1714,6 +1714,11 @@
     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);