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

Segment dump files remain after parallel heap dump on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • None
    • hotspot
    • None
    • svc
    • b23
    • generic
    • windows

      Segment file are not deleted after parallel heap dump on Windows

      jcmd <pid> GC.heap_dump -parallel=2 parallelHeapDump.bin
      produces parallelHeapDump.bin
      and parallelHeapDump.bin.p0

      Reproducer:
      update test/hotspot/jtreg/serviceability/dcmd/gc/HeapDumpParallelTest.java
      add the following check in checkAndVerify method:
      List<String> files
      = Stream.of(heapDumpFile.getAbsoluteFile().getParentFile().listFiles())
      .filter(file -> !file.isDirectory())
      .map(File::getName)
      .filter(name -> name.startsWith("parallelHeapDump.bin") && !name.equals("parallelHeapDump.bin"))
      .collect(Collectors.toList());
      if (!files.isEmpty()) {
      throw new RuntimeException("Unexpected files left: " + files);
      }

      The test fails on Windows (release and debug) with
      java.lang.RuntimeException: Unexpected files left: [parallelHeapDump.bin.p0]
      Serment files are removed on unix platforms

            amenkov Alex Menkov
            amenkov Alex Menkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: