Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
/ jdk21 Public archive


8309761: Leak class loader constraints
Browse files Browse the repository at this point in the history
Reviewed-by: coleenp
Backport-of: 8e4e6b0
  • Loading branch information
zhengyu123 committed Jul 7, 2023
1 parent 773bb0a commit 413ee9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hotspot/share/classfile/loaderConstraints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class ConstraintSet { // copied into hashtable as

~ConstraintSet() {
while (!_constraints->is_empty()) {
delete _constraints->pop();
delete _constraints;

Expand Down

1 comment on commit 413ee9f

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.