[
https://issues.apache.org/jira/browse/LUCENE-6239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Uwe Schindler updated LUCENE-6239:
----------------------------------
Attachment: LUCENE-6239.patch
New patch. I did additional comparisons with the Unsafe detected constants. I
tested various JVMs, all is consistent now.
I changed the code a little bit so 32 bit and 64 bits JVMs are handled
separately. For 32 bit JVMs it does not even try to get the alignment size or
compressed oops value. Also I fixed the array haeder, on 32 bit it is not
aligned.
I think it's ready, maybe [~dweiss] can have a look, too.
About backporting: We can do this, but reference size detection would not work
correctly with IBM J9, so it would not detect compressed references there and
always assume 64 bits. But J9 does not enable compressed refs by default...
> 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
> Attachments: LUCENE-6239.patch, LUCENE-6239.patch
>
>
> 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]