Skip to content

Commit

Permalink
8229437: assert(is_aligned(ref, HeapWordSize)) failed: invariant
Browse files Browse the repository at this point in the history
Reviewed-by: egahlin
  • Loading branch information
Markus Grönlund committed Sep 2, 2019
1 parent e77e5da commit 8f9d63d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/hotspot/share/jfr/leakprofiler/chains/bfsClosure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,6 @@ void BFSClosure::do_oop(narrowOop* ref) {

void BFSClosure::do_root(const oop* ref) {
assert(ref != NULL, "invariant");
assert(is_aligned(ref, HeapWordSize), "invariant");
assert(*ref != NULL, "invariant");
if (!_edge_queue->is_full()) {
_edge_queue->add(NULL, ref);
}
Expand Down
3 changes: 1 addition & 2 deletions src/hotspot/share/jfr/leakprofiler/chains/dfsClosure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ void DFSClosure::do_oop(narrowOop* ref) {

void DFSClosure::do_root(const oop* ref) {
assert(ref != NULL, "invariant");
assert(is_aligned(ref, HeapWordSize), "invariant");
const oop pointee = *ref;
const oop pointee = UnifiedOop::dereference(ref);
assert(pointee != NULL, "invariant");
closure_impl(ref, pointee);
}

0 comments on commit 8f9d63d

Please sign in to comment.