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

Reviewed-by: kvn
This commit is contained in:
Dean Long 2018-09-05 13:10:40 -07:00
parent cbac17e494
commit e51b1f0cf6
3 changed files with 3 additions and 3 deletions

View File

@ -3218,7 +3218,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();

View File

@ -321,7 +321,7 @@ void BarrierSetC1::generate_referent_check(LIRAccess& access, LabelObj* cont) {
__ cmp(lir_cond_equal, base.result(), LIR_OprFact::oopConst(NULL));
__ branch(lir_cond_equal, T_OBJECT, cont->label());
}
LIR_Opr src_klass = gen->new_register(T_OBJECT);
LIR_Opr src_klass = gen->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

View File

@ -333,7 +333,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());
}