You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2018/11/06 20:40:00 UTC

[jira] [Commented] (SPARK-24421) sun.misc.Unsafe in JDK9+

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

Sean Owen commented on SPARK-24421:
-----------------------------------

BTW thanks for the tip [~akorzhuev] ; I checked and unfortunately DirectByteBuffer in Java 9 holds an instance of jdk.internal.ref.Cleaner, not java.lang.ref.Cleaner. The latter isn't available in Java 8 anyway. So we'd have to hack this with reflection regardless.

> sun.misc.Unsafe in JDK9+
> ------------------------
>
>                 Key: SPARK-24421
>                 URL: https://issues.apache.org/jira/browse/SPARK-24421
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Build
>    Affects Versions: 2.3.0
>            Reporter: DB Tsai
>            Priority: Major
>
> Many internal APIs such as unsafe are encapsulated in JDK9+, see http://openjdk.java.net/jeps/260 for detail.
> To use Unsafe, we need to add *jdk.unsupported* to our code’s module declaration:
> {code:java}
> module java9unsafe {
>     requires jdk.unsupported;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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