Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
8259574: SIGSEGV in BFSClosure::closure_impl
Reviewed-by: stefank, egahlin
  • Loading branch information
Markus Grönlund committed Jan 18, 2021
1 parent d5ca3b3 commit cd25bf2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/jfr/leakprofiler/chains/bfsClosure.cpp
Expand Up @@ -229,7 +229,7 @@ void BFSClosure::do_oop(narrowOop* ref) {
}

void BFSClosure::do_root(UnifiedOopRef ref) {
assert(!ref.is_null(), "invariant");
assert(ref.dereference() != NULL, "pointee must not be null");
if (!_edge_queue->is_full()) {
_edge_queue->add(NULL, ref);
}
Expand Down
Expand Up @@ -57,7 +57,7 @@ template <typename Delegate>
void RootSetClosure<Delegate>::do_oop(narrowOop* ref) {
assert(ref != NULL, "invariant");
assert(is_aligned(ref, sizeof(narrowOop)), "invariant");
if (CompressedOops::is_null(*ref)) {
if (!CompressedOops::is_null(*ref)) {
_delegate->do_root(UnifiedOopRef::encode_in_native(ref));
}
}
Expand Down
Expand Up @@ -524,7 +524,6 @@ class JavaThreadInVMAndNative : public StackObj {
};

static void post_events(bool exception_handler, Thread* thread) {
DEBUG_ONLY(JfrJavaSupport::check_java_thread_in_vm(thread));
if (exception_handler) {
EventShutdown e;
e.set_reason("VM Error");
Expand Down

1 comment on commit cd25bf2

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.