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

Minor LingeredApp improvements

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      svc
    • Resolved In Build:
      b22
    • CPU:
      generic
    • OS:
      generic

      Description

      - need to fix summary comment how to use the class;
      - waitAppReady method should adjust timeout for timeout_factor;
      - command line should be logged into System.out, not to System.err;
      - getAppOutput method does not add functionality (as we have getOutput()) and is used by a single caller (test/jdk/sun/tools/jhsdb/heapconfig/TmtoolTestScenario.java). The conversion it does can be moved to the test.

      Some issues with tests which use LingeredApp:
      - test/hotspot/jtreg/serviceability/attach/AttachNegativePidTest.java
        starts LingeredApp but does not terminate it;
      - test/jdk/sun/tools/jinfo/JInfoTest.java:
        uses 2 LingeredApps and cleans it by
                  JInfoTestLingeredApp.stopApp(app1);
                  JInfoTestLingeredApp.stopApp(app2);
        If 1st stopApp() throws an exception, 2nd app won't be terminated

        Attachments

          Activity

            People

            • Assignee:
              amenkov Alex Menkov
              Reporter:
              amenkov Alex Menkov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: