diff src/share/vm/opto/phaseX.cpp @ 1009:03b336640699

6885584: A particular class structure causes large allocation spike for jit Reviewed-by: kvn
author never
date Wed, 07 Oct 2009 15:38:37 -0700
parents 662f330d7275
children e715b51789d8
line wrap: on
line diff
--- a/src/share/vm/opto/phaseX.cpp	Wed Oct 07 12:43:50 2009 -0700
+++ b/src/share/vm/opto/phaseX.cpp	Wed Oct 07 15:38:37 2009 -0700
@@ -1502,7 +1502,7 @@
 //---------------------------------saturate------------------------------------
 const Type* PhaseCCP::saturate(const Type* new_type, const Type* old_type,
                                const Type* limit_type) const {
-  const Type* wide_type = new_type->widen(old_type);
+  const Type* wide_type = new_type->widen(old_type, limit_type);
   if (wide_type != new_type) {          // did we widen?
     // If so, we may have widened beyond the limit type.  Clip it back down.
     new_type = wide_type->filter(limit_type);