Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8655

Off Heap Size Estimation rounds improperly

    XMLWordPrintable

Details

    Description

      UnpooledOffHeapMemoryAllocator.estimateSizeOverhead was supposed to round up to the nearest 16. Unfortunately it is rounding improperly. Instead of adding 15 and modding by 15 it is instead adding 15 and modding by hex 15 (or 21 in base 10). This causes it to not work in many cases.

      https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/container/offheap/UnpooledOffHeapMemoryAllocator.java#L75

      Attachments

        Activity

          People

            wburns@redhat.com Will Burns
            wburns@redhat.com Will Burns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: