You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "lqjacklee (JIRA)" <ji...@apache.org> on 2018/12/07 01:22:00 UTC

[jira] [Assigned] (HADOOP-15985) LightWeightGSet.computeCapacity() doesn't correctly account for CompressedOops

     [ 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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org