aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDean Long <dlong@openjdk.org>2018-09-05 13:10:40 -0700
committerDean Long <dlong@openjdk.org>2018-09-05 13:10:40 -0700
commite51b1f0cf6ad334fb72d7c3e52d4a54ca544af1b (patch)
tree346ead19f5b1d152d89a2c87e9b590f5d6ec6057
parentcbac17e4949adcff3403aefd7d6e18743b200734 (diff)
downloadlibcore-jdk21u/jdk-12+10.tar.gz
8187078: -XX:+VerifyOops finds numerous problems when running JPRTjdk21u/jdk-12+10jdk17u/jdk-12+10jdk/jdk-12+10
Reviewed-by: kvn
-rw-r--r--src/hotspot/share/c1/c1_LIRGenerator.cpp2
-rw-r--r--src/hotspot/share/gc/shared/c1/barrierSetC1.cpp2
-rw-r--r--src/hotspot/share/runtime/java.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/hotspot/share/c1/c1_LIRGenerator.cpp b/src/hotspot/share/c1/c1_LIRGenerator.cpp
index dc25221824a..376ef079cf3 100644
--- a/src/hotspot/share/c1/c1_LIRGenerator.cpp
+++ b/src/hotspot/share/c1/c1_LIRGenerator.cpp
@@ -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();
diff --git a/src/hotspot/share/gc/shared/c1/barrierSetC1.cpp b/src/hotspot/share/gc/shared/c1/barrierSetC1.cpp
index 27fa49567d7..2f6b181f50f 100644
--- a/src/hotspot/share/gc/shared/c1/barrierSetC1.cpp
+++ b/src/hotspot/share/gc/shared/c1/barrierSetC1.cpp
@@ -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
diff --git a/src/hotspot/share/runtime/java.cpp b/src/hotspot/share/runtime/java.cpp
index fb906f8abed..2df302da39e 100644
--- a/src/hotspot/share/runtime/java.cpp
+++ b/src/hotspot/share/runtime/java.cpp
@@ -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());
}