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

Uwe Schindler commented on LUCENE-6239:
---------------------------------------

Java 9 seems to make the constants public (at least there are some issues 
around making "Unsafe" public), so we can leave it for Java 7 and Java 8 as it 
is, so -1 to remove it here.

In any case, Java 9 will not have sun.misc.Unsafe anymore - it will get removed 
soon (as far as I understood). I was talking with the OpenJDK guys 2 weeks ago; 
this also caused heavy rumors in the auditorium at FOSDEM :-)

In any case, I disagree on having just static constants that assume something 
in the JVM. Something like object headers have a large impact on heap usage of 
some of our Accountables.

> 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]

Reply via email to