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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 23
    • Affects Version/s: 23
    • Component/s: 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 .

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

              Created:
              Updated:
              Resolved: