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

Serial: Remove unnecessary use of ExpandHeap_lock

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • 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.

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

              Created:
              Updated:
              Resolved: