[
https://issues.apache.org/jira/browse/HADOOP-15985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
lqjacklee reassigned HADOOP-15985:
----------------------------------
Assignee: lqjacklee
> LightWeightGSet.computeCapacity() doesn't correctly account for CompressedOops
> ------------------------------------------------------------------------------
>
> Key: HADOOP-15985
> URL: https://issues.apache.org/jira/browse/HADOOP-15985
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Roman Leventov
> Assignee: lqjacklee
> Priority: Minor
> Attachments: HADOOP-15985-002.patch, HADOOP-15985-1.patch
>
>
> In this line:
> [https://github.com/apache/hadoop/blob/a55d6bba71c81c1c4e9d8cd11f55c78f10a548b0/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/LightWeightGSet.java#L391],
> instead of checking if the platform is 32- or 64-bit, it should check if
> Unsafe.ARRAY_OBJECT_INDEX_SCALE is 4 or 8.
> The result is that on 64-bit platforms, when Compressed Oops are on,
> LightWeightGSet is two times denser than it is configured to be.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]