mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-11 19:08:23 +00:00
8329570: G1: Excessive is_obj_dead_cond calls in verification
Reviewed-by: aboldtch, shade, tschatzl, gli
This commit is contained in:
parent
27353ad367
commit
29992e1fca
@ -592,7 +592,6 @@ class G1VerifyLiveAndRemSetClosure : public BasicOopIterateClosure {
|
||||
template <class T>
|
||||
void do_oop_work(T* p) {
|
||||
assert(_containing_obj != nullptr, "must be");
|
||||
assert(!G1CollectedHeap::heap()->is_obj_dead_cond(_containing_obj, _vo), "Precondition");
|
||||
|
||||
if (num_failures() >= G1MaxVerifyFailures) {
|
||||
return;
|
||||
@ -624,6 +623,7 @@ public:
|
||||
_num_failures(0) { }
|
||||
|
||||
void set_containing_obj(oop const obj) {
|
||||
assert(!G1CollectedHeap::heap()->is_obj_dead_cond(obj, _vo), "Precondition");
|
||||
_containing_obj = obj;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user