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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-svc

      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*/);

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

              Created:
              Updated: