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

Commit

Permalink
8263557: Possible NULL dereference in Arena::destruct_contents()
Browse files Browse the repository at this point in the history
Backport-of: c484d8904285652246c3af212a4211b9a8955149
  • Loading branch information
Harold Seigel committed Mar 19, 2021
1 parent 7ba457a commit 0aeeebb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/memory/arena.cpp
Expand Up @@ -316,7 +316,9 @@ void Arena::destruct_contents() {
// reset size before chop to avoid a rare racing condition
// that can have total arena memory exceed total chunk memory
set_size_in_bytes(0);
_first->chop();
if (_first != NULL) {
_first->chop();
}
reset();
}

Expand Down

1 comment on commit 0aeeebb

@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.