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

jmap -histo may leak stream

    XMLWordPrintable

    Details

    • Subcomponent:
      svc
    • Resolved In Build:
      b06

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: