1.1 --- a/src/share/vm/ci/ciObject.cpp Tue May 24 15:30:05 2011 -0700 1.2 +++ b/src/share/vm/ci/ciObject.cpp Tue May 24 20:24:11 2011 -0700 1.3 @@ -187,7 +187,7 @@ 1.4 // ciObject::can_be_constant 1.5 bool ciObject::can_be_constant() { 1.6 if (ScavengeRootsInCode >= 1) return true; // now everybody can encode as a constant 1.7 - return handle() == NULL || !is_scavengable(); 1.8 + return handle() == NULL || is_perm(); 1.9 } 1.10 1.11 // ------------------------------------------------------------------ 1.12 @@ -204,7 +204,7 @@ 1.13 return true; 1.14 } 1.15 } 1.16 - return handle() == NULL || !is_scavengable(); 1.17 + return handle() == NULL || is_perm(); 1.18 } 1.19 1.20