src/share/vm/ci/ciObject.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 7048030 Cdiff src/share/vm/ci/ciObject.cpp

src/share/vm/ci/ciObject.cpp

Print this page

        

*** 185,195 **** // ------------------------------------------------------------------ // 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(); } // ------------------------------------------------------------------ // ciObject::should_be_constant() bool ciObject::should_be_constant() { --- 185,195 ---- // ------------------------------------------------------------------ // 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_perm(); } // ------------------------------------------------------------------ // ciObject::should_be_constant() bool ciObject::should_be_constant() {
*** 202,212 **** ciEnv* env = CURRENT_ENV; if (klass() == env->String_klass() || klass() == env->Class_klass()) { return true; } } ! return handle() == NULL || !is_scavengable(); } // ------------------------------------------------------------------ // ciObject::print --- 202,212 ---- ciEnv* env = CURRENT_ENV; if (klass() == env->String_klass() || klass() == env->Class_klass()) { return true; } } ! return handle() == NULL || is_perm(); } // ------------------------------------------------------------------ // ciObject::print
src/share/vm/ci/ciObject.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File