Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8263557: Possible NULL dereference in Arena::destruct_contents()
Reviewed-by: kbarrett, coleenp
  • Loading branch information
tstuefe committed Mar 16, 2021
1 parent ba35193 commit c484d8904285652246c3af212a4211b9a8955149
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/hotspot/share/memory/arena.cpp
@@ -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();
}

0 comments on commit c484d89

Please sign in to comment.