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

Clear remembered set while shrinking the heap

    XMLWordPrintable

Details

    • gc

    Description

      While looking at the review for JDK-8131734 there has been a discussion whether at heap shrinking time the remembered sets should be cleared. Apparently this is not the case even during full GC after visual inspection of the code.

      While the remembered set will be reclaimed anyway when reallocating that region, it might take a while until a region is reallocated. So somewhat more eagerly clearing the remembered set could help average memory usage.

      Check whether this is actually true (remembered sets will be cleared only very lazily), and if so, more eagerly clean the remembered set at that time.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: