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

Usage of pretenured value is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 7u4
    • hotspot
    • None
    • gc
    • b72
    • generic
    • generic

        See 7158457 for more information, summary below:

        The _avg_pretenured counter/value is sampled every time an allocation is made directly in the old generation. The value passed to the sample function is the size of the object in *words*.

        When it's used in PSAdaptiveSizePolicy::update_averages() the _avg_pretenured average is added to another value, namely the number of *bytes* promoted. The units don't match.

        The other problem is that the _avg_pretenured average is exactly that - an average. So the addition adds the average size of the pretenured objects with the number of promoted bytes. Chances are the code should add the sum of all pretenured objects since last promotion instead.

              david David Lindholm (Inactive)
              mikael Mikael Vidstedt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: