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

Refactor ProcessTools to get rid of dependency on java.management

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b05

      Description

      Currently, ProcessTools imports
         java.lang.management.ManagementFactory;
         java.lang.management.RuntimeMXBean;
      So, all tests using ProcessTools are recognized as depending on the java.management module. And as the result they are considered as not applicable for minimal VM.

      In reality, those classes are only used in by the executeTestJvmAllArgs method. I found only two tests which invoke this method:
          compiler/jvmci/compilerToVM/DebugOutputTest.java
          compiler/compilercontrol/share/scenario/Executor.java

      Suggestion:
      - update ProcessTools to stop using java.lang.management
      - rewrite two compiler tests
      - update all tests which don't need java.management

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                iignatyev Igor Ignatyev
                Reporter:
                dfazunen Dmitry Fazunenko (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: