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

BitMap::reallocate might not clear some bits

    XMLWordPrintable

Details

    • gc
    • b25

    Description

      If BitMap::reallocate is called with clear == true, it is possible that some bits in the new array that ought to be cleared won't be.

      If new_size_in_bits > old_size_in_bits and old_size_in_bits is not word aligned, the word-copy from old to new will copy the entire last word of old, including possibly set bits beyond old_size_in_bits. The requested clearing of new will start with the word following that last copied word. This leaves the bits of new in the range

      [old_size_in_bits, word_align_up(MIN2(new_size_in_bits, old_size_in_bits)))

      in an unspecified state.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: