mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-07 00:48:38 +00:00
8308098: G1: Remove redundant checks in G1ObjectCountIsAliveClosure
Reviewed-by: tschatzl, iwalulya
This commit is contained in:
parent
2599ada152
commit
7e2e05d836
@ -1218,11 +1218,10 @@ public:
|
||||
class G1ObjectCountIsAliveClosure: public BoolObjectClosure {
|
||||
G1CollectedHeap* _g1h;
|
||||
public:
|
||||
G1ObjectCountIsAliveClosure(G1CollectedHeap* g1h) : _g1h(g1h) { }
|
||||
G1ObjectCountIsAliveClosure(G1CollectedHeap* g1h) : _g1h(g1h) {}
|
||||
|
||||
bool do_object_b(oop obj) {
|
||||
return obj != nullptr &&
|
||||
(!_g1h->is_in_reserved(obj) || !_g1h->is_obj_dead(obj));
|
||||
return !_g1h->is_obj_dead(obj);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user