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

Extend WhiteBox API with methods which retrieve from VM information about available GC

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b122

      Description

      Existing jtreg @requires vm.gc implementation is based on parsing command line flags: -XX:+Use???GC.
      But this information is not always correct:
      - some GC might be unsupported (a warning message is printed then)
      - -XX:+UseDetermenisticGC does not turn a GC, but just a mode of G1

      To support such cases we need more accurate setting of @requires properties.
      To make it possible to fix:
      JDK-8151283: Implement setting jtreg @requires property vm.isG1Supported.
      JDK-8153758 : @requires should use more accurate GC type parsing.

      We need to extend the WhiteBox API:

      The following methods are required:
        public native boolean gcSelectedByErgo()
        public native String getGC();
        private native boolean supportsSerialGC();
        private native boolean supportsParallelGC();
        private native boolean supportsConcMarkSweepGC();
        private native boolean supportsG1GC();

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: