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

Enhance dcmd/CommandExecutor.execute() to accept vm options

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      svc

      Description

      The current signature of the execute() method is as follows:
      public final OutputAnalyzer execute(String cmd, boolean silent)

      It would be useful to have another execute() method as follows:
      public final OutputAnalyzer execute(String vmOption, String cmd, boolean silent)

      so that the caller can pass in some vm option for debugging purposes, e.g.
      OutputAnalyzer output = cmdExecutor.execute("-J
      Xlog:class+load,cds=debug", jcmd, true/*silent*/);

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ccheung Calvin Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: