[ 
https://issues.apache.org/jira/browse/HADOOP-15985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16711661#comment-16711661
 ] 

Kihwal Lee commented on HADOOP-15985:
-------------------------------------

[~Jack-Lee], I am asking about the content of the attached patch.

> 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
>            Priority: Minor
>         Attachments: 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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to