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

Error message in AdaptiveFreeList<Chunk>::verify_stats is wrong

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: hs25
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b14

      Backports

        Description

        The AdaptiveFreeList<Chunk>::verify_stats method contains the following err_msg:

                 err_msg("FreeList " PTR_FORMAT " of size " SIZE_FORMAT
                         " violates Conservation Principle: "
                         "prev_sweep(" SIZE_FORMAT ")"
                         " + split_births(" SIZE_FORMAT ")"
                         " + coal_births(" SIZE_FORMAT ") + 1 >= "
                         " split_deaths(" SIZE_FORMAT ")"
                         " coal_deaths(" SIZE_FORMAT ")"
                         " + count(" SSIZE_FORMAT ")",
                         this, size(), _allocation_stats.prev_sweep(), _allocation_stats.split_births(),
                         _allocation_stats.split_births(), _allocation_stats.split_deaths(),
                         _allocation_stats.coal_deaths(), count()));

        The argument to coal_births is split_births, which will cause the error message in the assert to be wrong.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ehelin Erik Helin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: