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

Incorrect assert in BitMap::count_one_bits

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b22

      BitMap::count_one_bits has this post-condition assert:

      assert(sum <= (beg - end), "must be");

      That should be "(end - beg)".

            fbredberg Fredrik Bredberg
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: