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

Syntax for -Xlog complicates shell scripts

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      svc

      Description

      The current syntax for -Xlog uses '*' for wildcard matching of tags. This causes problems in shell scripts where the * is expanded and extra care must be taken to escape it.

      Suggestions to resolve this includes reverting the syntax to the initial UL draft where wildcard matching was the default, and to do exact matching you would add a '@' at the start. For example, the current -Xlog:gc* would just be -Xlog:gc, and the current -Xlog:gc would then be -Xlog:@gc

      Other suggestions include using + instead of *. -Xlog:gc* would then be -Xlog:gc+

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mlarsson Marcus Larsson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: