6885584: A particular class structure causes large allocation spike for jit

Reviewed-by: kvn
This commit is contained in:
Tom Rodriguez 2009-10-07 15:38:37 -07:00
parent ba951dbf36
commit 9b306d03ee
4 changed files with 85 additions and 15 deletions

View file

@ -1502,7 +1502,7 @@ Node *PhaseCCP::transform_once( Node *n ) {
//---------------------------------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);