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

Revise fix for JDK-8340391

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 24
    • core-svc

      JDK-8319873 introduced a port for jcmd System.map for Windows, but the regression test did not work for ZGC, which maps their java heap with a file instead of using anonymous mappings.

      JDK-8340391 attempted to fix said regression test. By doing so, it weakened the regex that matches committed memory mappings from "match all private sections" to "map all private sections or file-mapped sections".

      This is unnecessary, since this only affects the java heap and only on zgc. And a private section should not show up as a file-mapped section. A better way to do this is the way the regression test works on Linux, where it uses a separate regex for the java heap.

      Additionally, since not everyone remembers to run the tests with ZGC, it would be better to add an separate @test section that runs this test with -XX:+UseZGC explicitly specified.


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

              Created:
              Updated: