提交 2f597675 编写于 作者: S shade

8187078: -XX:+VerifyOops finds numerous problems when running JPRT

Reviewed-by: andrew
上级 cd702a95
......@@ -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();
......
......@@ -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());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册