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 "Roman Leventov (JIRA)" <ji...@apache.org> on 2018/12/06 13:11:00 UTC

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

Roman Leventov created HADOOP-15985:
---------------------------------------

             Summary: 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


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