[ 
https://issues.apache.org/jira/browse/SPARK-45508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Josh Rosen updated SPARK-45508:
-------------------------------
    Description: We need to add 
`--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED` to our JVM options so that 
the code in `org.apache.spark.unsafe.Platform` can access the JDK internal 
cleaner classes.  (was: We need to update the 

 
```
val f = 
classOf[org.apache.spark.unsafe.Platform].getDeclaredField("CLEANER_CREATE_METHOD")
f.setAccessible(true)
f.get(null)
```
returning `null` instead of a method.)

> Add "--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED" so Platform can 
> access cleaner on Java 9+
> --------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-45508
>                 URL: https://issues.apache.org/jira/browse/SPARK-45508
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 3.5.0
>            Reporter: Josh Rosen
>            Priority: Major
>
> We need to add `--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED` to our 
> JVM options so that the code in `org.apache.spark.unsafe.Platform` can access 
> the JDK internal cleaner classes.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to