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

Survivor MemoryMXBean used() size granularity is region based

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u192, 9, 10, 11, 12, 13
    • Fix Version/s: 13
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b16

      Description

      The used() of survivor space MemoryMXBean is based on region granularity. I.e. a survivor region can either be fully used or not.

      This causes failures for tests that use the used() value of that MemoryMXBean (linked below) as they do not expect such large jumps in usage after allocation of a few (more) objects in survivor space.

      This is day one behavior (and some of these tests have been excluded from testing for a long time now).

      After fixing, also re-enable the corresponding tests, verifying that they work again.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sangheki Sangheon Kim
                Reporter:
                tschatzl Thomas Schatzl
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: