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

Serial: Use IsGCActiveMark instead of AutoModifyRestore in SerialHeap::do_collection

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 23
    • 23
    • hotspot
    • gc
    • b16

      The `IsGCActiveMark` is used by other GCs except SerialGC. In `SerialHeap::do_collection`, the statement shown below implements the same feature as `IsGCActiveMark`. It is good to revise it so that all the GCs have the consistent implementation.

      ```
      AutoModifyRestore<bool> temporarily(_is_gc_active, true);
      ```

      This issue was firstly reported at https://mail.openjdk.org/pipermail/hotspot-gc-dev/2024-March/046686.html .

            gli Guoxiong Li
            gli Guoxiong Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: