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

Serial: Remove soft ref policy update in WhiteBox FullGC

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • gc

      SerialHeap::must_clear_all_soft_refs determines whether soft refs should be cleared or not, based on gc-cause.

      Therefore, the Serial specific part can be removed.

      ```
      #if INCLUDE_G1GC || INCLUDE_SERIALGC
        if (UseG1GC || UseSerialGC) {
          // Needs to be cleared explicitly for G1 and Serial GC.
          Universe::heap()->soft_ref_policy()->set_should_clear_all_soft_refs(false);
        }
      #endif // INCLUDE_G1GC || INCLUDE_SERIALGC
      WB_END
      ```

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: