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

Make SpaceMangler inherit AllStatic

XMLWordPrintable

    • gc
    • b24

      After extracting out `_top_for_allocations`, the users of `SpaceMangler` can better maintain `top`. This affects only Serial and Parallel. Other GCs already treat `SpaceMangler` as `AllStatic`, using its static API solely. `SpaceMangler` being stateful complicates the logic, which is probably the reason why a dev-flag `CheckZapUnusedHeapArea` is there to check correctness if needed. After the simplification, the dev-flag can also be removed.

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

              Created:
              Updated:
              Resolved: