Serial: Remove unnecessary use of ExpandHeap_lock

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: 19
    • Component/s: hotspot
    • gc
    • b10

      `ExpandHeap_lock` is used in the `expand` method in young-gen and old-gen of Serial GC. Inspecting the call hierarchy, one can see it's called either inside a safepoint or holding `Heap_lock` (i.e. `assert_locked_or_safepoint(Heap_lock)` holds).

      Therefore, `ExpandHeap_lock` can be removed in Serial GC code.

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: