hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12760) sun.misc.Cleaner has moved to a new location in OpenJDK 9
Date Wed, 20 Dec 2017 15:38:02 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-12760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16298644#comment-16298644

Akira Ajisaka commented on HADOOP-12760:

bq.  How ready is this to go in?
This implementation is inspired from LUCENE-6989. The hack code can be available at https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java#L339
Given Apache Lucene is Java 9 ready, the patch is ready to go in.

bq. I see its using introspection to do the cleaner stuff, so it is backwards compatible,
Yes, it is backward compatible.

> sun.misc.Cleaner has moved to a new location in OpenJDK 9
> ---------------------------------------------------------
>                 Key: HADOOP-12760
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12760
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Chris Hegarty
>            Assignee: Akira Ajisaka
>         Attachments: HADOOP-12760.00.patch, HADOOP-12760.01.patch, HADOOP-12760.02.patch,
> This is a heads-up: there are upcoming changes in JDK 9 that will require, at least,
a small update to org.apache.hadoop.crypto.CryptoStreamUtils & org.apache.hadoop.io.nativeio.NativeIO.
> OpenJDK issue no. 8148117: "Move sun.misc.Cleaner to jdk.internal.ref" [1], will move
the Cleaner class from sun.misc to jdk.internal.ref. There is ongoing discussion about the
possibility of providing a public supported API, maybe in the JDK 9 timeframe, for releasing
NIO direct buffer native memory, see the core-libs-dev mail thread [2]. At the very least
CryptoStreamUtils & NativeIO [3] should be updated to have knowledge of the new location
of the JDK Cleaner.
> [1] https://bugs.openjdk.java.net/browse/JDK-8148117
> [2] http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-January/038243.html
> [3] https://github.com/apache/hadoop/search?utf8=✓&q=sun.misc.Cleaner

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message