Hi,

+1 to this approach.

I can create a PR for Apache Lucene to test this! With our current code it is 
very easy to add support for this - which is great (at the end I just need a 
MethodHandle with a MethodType "(ByteBuffer)void")!

Unfortunately I am not good in compiling OpenJDK, so if somebody could provide 
me a patched build for windows or linux, I'd be happy.

Uwe

-----
Uwe Schindler
uschind...@apache.org 
ASF Member, Apache Lucene PMC / Committer
Bremen, Germany
http://lucene.apache.org/

> -----Original Message-----
> From: Chris Hegarty [mailto:chris.hega...@oracle.com]
> Sent: Tuesday, December 13, 2016 8:47 PM
> To: Core-Libs-Dev <core-libs-dev@openjdk.java.net>; jigsaw-dev <jigsaw-
> d...@openjdk.java.net>; Uwe Schindler <uschind...@apache.org>; Peter
> Levart <peter.lev...@gmail.com>
> Subject: Re: Java 9 build 148 causes trouble in Apache
> Lucene/Solr/Elasticsearch
> 
> Taking into account the feedback so far, and changing the method name (
> since
> it is an attractive nuisance ), here is where I think we ended up.
> 
> http://cr.openjdk.java.net/~chegar/Unsafe_invokeCleaner/
> 
> If this is agreeable, I’ll file an issue in JIRA to track the code changes, 
> and
> update JEP 260.
> 
> -Chris.=

Reply via email to