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

Refactor ProcessTools to get rid of dependency on java.management

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • hotspot
    • b05

      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

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

              Created:
              Updated:
              Resolved: