[
https://issues.apache.org/jira/browse/LUCENE-6239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14316203#comment-14316203
]
Uwe Schindler commented on LUCENE-6239:
---------------------------------------
About the detection of compressed OOPs:
We can do this with the HotspotBean (same way like Object Alignment). The code
is already dynamic (see LUCENE-6069). We just can look for the VM option
"CompressedOops", it it is true, we can assume 32 bits for reference size. This
would not work on J9, but J9 is dead (at least in Trunk, because there is no
Java 8 IBM J9),
The other constants are not important.
Robert: Would you be happy to assign sane defaults for all the constants and
just do the HotspotMXBean trick to find out the Reference size? This one is
uesed quite often in Lucene, because it has large impact for arrays of Object
References. All other Unsafe code could be removed.
> Remove RAMUsageEstimator Unsafe calls
> -------------------------------------
>
> Key: LUCENE-6239
> URL: https://issues.apache.org/jira/browse/LUCENE-6239
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Robert Muir
>
> This is unnecessary risk. We should remove this stuff, it is not needed here.
> We are a search engine, not a ram calculator.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]