mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-31 05:28:33 +00:00
8281748: runtime/logging/RedefineClasses.java failed "assert(addr != __null) failed: invariant"
Reviewed-by: ayang, kbarrett
This commit is contained in:
parent
bc6148407e
commit
2fe0bf66b7
@ -41,8 +41,14 @@
|
||||
#include "utilities/bitMap.inline.hpp"
|
||||
|
||||
inline bool G1CMIsAliveClosure::do_object_b(oop obj) {
|
||||
HeapRegion* hr = _g1h->heap_region_containing(cast_from_oop<HeapWord*>(obj));
|
||||
// Check whether the passed in object is null. During discovery the referent
|
||||
// may be cleared between the initial check and being passed in here.
|
||||
if (obj == NULL) {
|
||||
// Return true to avoid discovery when the referent is NULL.
|
||||
return true;
|
||||
}
|
||||
|
||||
HeapRegion* hr = _g1h->heap_region_containing(cast_from_oop<HeapWord*>(obj));
|
||||
// All objects allocated since the start of marking are considered live.
|
||||
if (hr->obj_allocated_since_next_marking(obj)) {
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user