The debug agent needs to deallocate memory that is allocated by calls to GetAllThreads. There were two places were this was not being done, resulting in a memory leak.
------------- Commit messages: - Make sure to deallocate jthread array allocated by GetAllThreads. Changes: https://git.openjdk.java.net/jdk/pull/968/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=968&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8255694 Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod Patch: https://git.openjdk.java.net/jdk/pull/968.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/968/head:pull/968 PR: https://git.openjdk.java.net/jdk/pull/968