Mercurial > hg > truffle
diff src/share/vm/ci/ciObject.cpp @ 3402:28a9fe9534ea
7048030: is_scavengable changes causing compiler to embed more constants
Summary: ciObject::can_be_constant() and should_be_constant() should use is_perm() instead of !is_scavengable()
Reviewed-by: never, jrose
author | kvn |
---|---|
date | Tue, 24 May 2011 20:24:11 -0700 |
parents | 01fd6090fdd8 |
children | be4ca325525a c26de9aef2ed |
line wrap: on
line diff
--- a/src/share/vm/ci/ciObject.cpp Tue May 24 15:30:05 2011 -0700 +++ b/src/share/vm/ci/ciObject.cpp Tue May 24 20:24:11 2011 -0700 @@ -187,7 +187,7 @@ // ciObject::can_be_constant bool ciObject::can_be_constant() { if (ScavengeRootsInCode >= 1) return true; // now everybody can encode as a constant - return handle() == NULL || !is_scavengable(); + return handle() == NULL || is_perm(); } // ------------------------------------------------------------------ @@ -204,7 +204,7 @@ return true; } } - return handle() == NULL || !is_scavengable(); + return handle() == NULL || is_perm(); }