diff src/share/vm/opto/divnode.cpp @ 756:cecd04fc6f93

6837011: SIGSEGV in PhaseIdealLoop in 32bit jvm Summary: The CR's test crashes with SIGSEGV when running with "-server -Xcomp" using using 32bit jvm. Reviewed-by: kvn, never, rasbold
author twisti
date Wed, 06 May 2009 12:04:42 -0700
parents 98cb887364d3
children 174ade00803b
line wrap: on
line diff
--- a/src/share/vm/opto/divnode.cpp	Tue May 05 11:02:10 2009 -0700
+++ b/src/share/vm/opto/divnode.cpp	Wed May 06 12:04:42 2009 -0700
@@ -298,8 +298,10 @@
 
   // 6732154: Construct both w1 and w2 before transforming, so t
   // doesn't go dead prematurely.
+  // 6837011: We need to transform w2 before w1 because the
+  // transformation of w1 could return t.
+  w2 = phase->transform(w2);
   w1 = phase->transform(w1);
-  w2 = phase->transform(w2);
 
   // w1 = u0*v1 + w1;
   Node* u0v1 = phase->transform(new (phase->C, 3) MulLNode(u0, v1));