8057799: Unnecessary NULL check in G1KeepAliveClosure
Reviewed-by: tschatzl, stefank
This commit is contained in:
parent
7bf45791e8
commit
b9d46eee2c
@ -5448,9 +5448,10 @@ public:
|
|||||||
void do_oop(narrowOop* p) { guarantee(false, "Not needed"); }
|
void do_oop(narrowOop* p) { guarantee(false, "Not needed"); }
|
||||||
void do_oop(oop* p) {
|
void do_oop(oop* p) {
|
||||||
oop obj = *p;
|
oop obj = *p;
|
||||||
|
assert(obj != NULL, "the caller should have filtered out NULL values");
|
||||||
|
|
||||||
G1CollectedHeap::in_cset_state_t cset_state = _g1->in_cset_state(obj);
|
G1CollectedHeap::in_cset_state_t cset_state = _g1->in_cset_state(obj);
|
||||||
if (obj == NULL || cset_state == G1CollectedHeap::InNeither) {
|
if (cset_state == G1CollectedHeap::InNeither) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (cset_state == G1CollectedHeap::InCSet) {
|
if (cset_state == G1CollectedHeap::InCSet) {
|
||||||
|
Loading…
Reference in New Issue
Block a user