diff --git a/src/share/vm/c1/c1_LIRGenerator.cpp b/src/share/vm/c1/c1_LIRGenerator.cpp index 21cd08da9e9c1969af0ea18070bc8813d1c1ae58..e63246d064340cff8e1a6daa709121ebc8ce8577 100644 --- a/src/share/vm/c1/c1_LIRGenerator.cpp +++ b/src/share/vm/c1/c1_LIRGenerator.cpp @@ -2334,7 +2334,7 @@ void LIRGenerator::do_UnsafeGetObject(UnsafeGetObject* x) { __ cmp(lir_cond_equal, src_reg, LIR_OprFact::oopConst(NULL)); __ branch(lir_cond_equal, T_OBJECT, Lcont->label()); } - LIR_Opr src_klass = new_register(T_OBJECT); + LIR_Opr src_klass = new_register(T_METADATA); if (gen_type_check) { // We have determined that offset == referent_offset && src != null. // if (src->_klass->_reference_type == REF_NONE) -> continue @@ -3299,7 +3299,7 @@ void LIRGenerator::profile_parameters_at_call(ProfileCall* x) { void LIRGenerator::do_ProfileCall(ProfileCall* x) { // Need recv in a temporary register so it interferes with the other temporaries LIR_Opr recv = LIR_OprFact::illegalOpr; - LIR_Opr mdo = new_register(T_OBJECT); + LIR_Opr mdo = new_register(T_METADATA); // tmp is used to hold the counters on SPARC LIR_Opr tmp = new_pointer_register(); diff --git a/src/share/vm/runtime/java.cpp b/src/share/vm/runtime/java.cpp index 721f74321f0d133dd75b139abbe52986def1c3da..9b49d51c3f6d9772e678f3cdb1fb504f5d6c96f9 100644 --- a/src/share/vm/runtime/java.cpp +++ b/src/share/vm/runtime/java.cpp @@ -335,7 +335,7 @@ void print_statistics() { klassVtable::print_statistics(); klassItable::print_statistics(); } - if (VerifyOops) { + if (VerifyOops && Verbose) { tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count()); }