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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • hs25
    • hotspot
    • gc
    • b14

        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.

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

                Created:
                Updated:
                Resolved: