Skip to content

Commit 4ac1878

Browse files
committed
Add jvmArgs '-Xshare:off' for Gradle test tasks
There is an extra warning in the build logs: ``` OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended ``` which we cannot mitigate since we fork JVM for every module, and it tries to share & amend classpath for every module (We can revert this fix eventually, if we find it causing performance degradation)
1 parent b648706 commit 4ac1878

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ configure(javaProjects) { subproject ->
336336
reports.junitXml.required = false
337337

338338
enableAssertions = false
339+
340+
jvmArgs '-Xshare:off'
339341
}
340342

341343
checkstyle {

0 commit comments

Comments
 (0)