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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • gc
    • b122

      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();

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

              Created:
              Updated:
              Resolved: