[infinispan-issues] [JBoss JIRA] (ISPN-8655) Off Heap Size Estimataion rounds improperly

William Burns (JIRA) issues at jboss.org
Thu Jan 4 13:25:00 EST 2018


William Burns created ISPN-8655:
-----------------------------------

             Summary: Off Heap Size Estimataion rounds improperly
                 Key: ISPN-8655
                 URL: https://issues.jboss.org/browse/ISPN-8655
             Project: Infinispan
          Issue Type: Bug
          Components: Off Heap
    Affects Versions: 9.1.4.Final
            Reporter: William Burns
             Fix For: 9.2.0.CR1, 9.1.5.Final


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



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list