Skip to content

Commit 8f9d63d

Browse files
author
Markus Grönlund
committed
8229437: assert(is_aligned(ref, HeapWordSize)) failed: invariant
Reviewed-by: egahlin
1 parent e77e5da commit 8f9d63d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/hotspot/share/jfr/leakprofiler/chains/bfsClosure.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ void BFSClosure::do_oop(narrowOop* ref) {
230230

231231
void BFSClosure::do_root(const oop* ref) {
232232
assert(ref != NULL, "invariant");
233-
assert(is_aligned(ref, HeapWordSize), "invariant");
234-
assert(*ref != NULL, "invariant");
235233
if (!_edge_queue->is_full()) {
236234
_edge_queue->add(NULL, ref);
237235
}

src/hotspot/share/jfr/leakprofiler/chains/dfsClosure.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ void DFSClosure::do_oop(narrowOop* ref) {
178178

179179
void DFSClosure::do_root(const oop* ref) {
180180
assert(ref != NULL, "invariant");
181-
assert(is_aligned(ref, HeapWordSize), "invariant");
182-
const oop pointee = *ref;
181+
const oop pointee = UnifiedOop::dereference(ref);
183182
assert(pointee != NULL, "invariant");
184183
closure_impl(ref, pointee);
185184
}

0 commit comments

Comments
 (0)