8187078: -XX:+VerifyOops finds numerous problems when running JPRT
Reviewed-by: kvn
This commit is contained in:
parent
cbac17e494
commit
e51b1f0cf6
@ -3218,7 +3218,7 @@ void LIRGenerator::profile_parameters_at_call(ProfileCall* x) {
|
|||||||
void LIRGenerator::do_ProfileCall(ProfileCall* x) {
|
void LIRGenerator::do_ProfileCall(ProfileCall* x) {
|
||||||
// Need recv in a temporary register so it interferes with the other temporaries
|
// Need recv in a temporary register so it interferes with the other temporaries
|
||||||
LIR_Opr recv = LIR_OprFact::illegalOpr;
|
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
|
// tmp is used to hold the counters on SPARC
|
||||||
LIR_Opr tmp = new_pointer_register();
|
LIR_Opr tmp = new_pointer_register();
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@ void BarrierSetC1::generate_referent_check(LIRAccess& access, LabelObj* cont) {
|
|||||||
__ cmp(lir_cond_equal, base.result(), LIR_OprFact::oopConst(NULL));
|
__ cmp(lir_cond_equal, base.result(), LIR_OprFact::oopConst(NULL));
|
||||||
__ branch(lir_cond_equal, T_OBJECT, cont->label());
|
__ 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) {
|
if (gen_type_check) {
|
||||||
// We have determined that offset == referent_offset && src != null.
|
// We have determined that offset == referent_offset && src != null.
|
||||||
// if (src->_klass->_reference_type == REF_NONE) -> continue
|
// if (src->_klass->_reference_type == REF_NONE) -> continue
|
||||||
|
@ -333,7 +333,7 @@ void print_statistics() {
|
|||||||
klassVtable::print_statistics();
|
klassVtable::print_statistics();
|
||||||
klassItable::print_statistics();
|
klassItable::print_statistics();
|
||||||
}
|
}
|
||||||
if (VerifyOops) {
|
if (VerifyOops && Verbose) {
|
||||||
tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count());
|
tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user