Skip to content

Commit

Permalink
8263557: Possible NULL dereference in Arena::destruct_contents()
Browse files Browse the repository at this point in the history
Reviewed-by: kbarrett, coleenp
  • Loading branch information
tstuefe committed Mar 16, 2021
1 parent ba35193 commit c484d89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/memory/arena.cpp
Expand Up @@ -310,7 +310,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

0 comments on commit c484d89

Please sign in to comment.