RFR: 8255694: memory leak in JDWP debug agent after calling JVMTI GetAllThreads

Serguei Spitsyn sspitsyn at openjdk.java.net
Sat Oct 31 08:12:55 UTC 2020


On Fri, 30 Oct 2020 20:30:49 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

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

This looks good.
Nit: semicolon sign can be removed:
     err: ;
+        jvmtiDeallocate(threads);


Thanks,
Serguei

-------------

Marked as reviewed by sspitsyn (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/968


More information about the serviceability-dev mailing list