Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8280002

jmap -histo may leak stream

XMLWordPrintable

    • svc
    • b06

        JDK-8215624 added parallel heap iteration to both `jmap -histo` and `jcmd GC.class_histogram`. When called with an explicit file and an invalid argument for number of threads, it leaks the file (bit of memory and a handle).

        Example:

        jmap -histo:parallel=notanumber,file=xx.txt

        Can only be reproduced with jmap. jcmd is safe, since `GC.class_histogram` handles argument for the `-parallel` option in shared code, and there it is done correclty.

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: