[
https://issues.apache.org/jira/browse/CASSANDRA-20677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ariel Weisberg updated CASSANDRA-20677:
---------------------------------------
Fix Version/s: 5.1
(was: 5.x)
Source Control Link:
https://github.com/apache/cassandra/commit/58ee8479683f7fa508e78712e5735dfcf0cf09a7
Resolution: Fixed
Status: Resolved (was: Ready to Commit)
> Adopt Unsafe::invokeCleaner for Direct ByteBuffer cleaning
> ----------------------------------------------------------
>
> Key: CASSANDRA-20677
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20677
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Local/Other
> Reporter: Sam Lightfoot
> Assignee: Sam Lightfoot
> Priority: Normal
> Fix For: 5.1
>
>
> Per comments in FileUtils::clean
> {code:java}
> // TODO Once we can get rid of Java 8, it's simpler to call
> sun.misc.Unsafe.invokeCleaner(ByteBuffer),
> // but need to take care of the attachment handling (i.e. whether 'buf' is a
> duplicate or slice) - that
> // is different in sun.misc.Unsafe.invokeCleaner and this implementation.
> {code}
> We can now useĀ Unsafe.invokeCleaner to clean direct byte buffers which should
> tidy up the existing code.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]