[infinispan-issues] [JBoss JIRA] (ISPN-8655) Off Heap Size Estimation rounds improperly
Galder Zamarreño (JIRA)
issues at jboss.org
Fri Jan 12 02:29:00 EST 2018
[ https://issues.jboss.org/browse/ISPN-8655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Galder Zamarreño updated ISPN-8655:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 9.2.0.Final
(was: 9.1.5.Final)
Resolution: Done
> Off Heap Size Estimation 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
> Assignee: William Burns
> Fix For: 9.2.0.CR1, 9.2.0.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