[
https://issues.apache.org/jira/browse/LUCENE-5463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13907167#comment-13907167
]
Hoss Man commented on LUCENE-5463:
----------------------------------
bq. as far as FieldCache... whatever goes
Probably safe to white list that usage right? It's use is only if the caller
explicitly asked for the estimated size of the cache entries to be computed
(and then cached in the entry)
Perhaps...
* whitelist that usage in 4x
* mark those FieldCache methods as deprecated in 4x, with pointers telling
callers how to go use RamUsageEstimator on the cache entries directly if they
want that info.
* remove those methods (and their whitelisted use of RamUsageEstimator) in 5.x
?
> Make RamUsageEstimator.(human)sizeOf(Object) a forbidden API
> ------------------------------------------------------------
>
> Key: LUCENE-5463
> URL: https://issues.apache.org/jira/browse/LUCENE-5463
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Adrien Grand
> Assignee: Adrien Grand
> Attachments: LUCENE-5463.patch
>
>
> We have had a few issues with {{RamUsageEstimator}} recently so I think we
> should consider making the {{sizeOf(Object)}} and {{humanSizeOf(Object)}}
> methods forbidden under src/java (however still allowed for tests as it is
> handy to check the size computations which are done "manually"). However,
> {{sizeOf(byte[])}}, {{shallowSizeOf(Class)}}, etc. remain useful so I think
> we should keep them allowed.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]