Skip to content

Commit f68d224

Browse files
committed
[SPARK-54098] Set --sun-misc-unsafe-memory-access=allow for JavaExec Gradle tasks
1 parent 7555722 commit f68d224

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ subprojects {
6161
options.compilerArgs.add("-proc:full")
6262
}
6363

64+
tasks.withType(JavaExec).configureEach {
65+
jvmArgs '--sun-misc-unsafe-memory-access=allow'
66+
}
67+
6468
repositories {
6569
// Google Mirror of Maven Central, placed first so that it's used instead of flaky Maven Central.
6670
// See https://storage-download.googleapis.com/maven-central/index.html

0 commit comments

Comments
 (0)