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

Off Heap Size Estimation rounds improperly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.1.5.Final, 9.2.0.Final
    • 9.1.4.Final
    • Off Heap
    • None

      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

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

                Created:
                Updated:
                Resolved: