Skip to content

Commit 3636301

Browse files
TWiStErRobmarcphilipp
authored andcommitted
Remove outdated metaspace workaround for Asciidoctor/JRuby
Original workaround was introduced by 00f5e85, but later obsoleted by 52497df
1 parent b1b5f4b commit 3636301

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

documentation/documentation.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,9 @@ tasks {
363363
}
364364

365365
asciidoctorPdf {
366-
setExecutionMode(JAVA_EXEC) // Avoid classpath conflicts with other Gradle plugins (e.g. JReleaser)
366+
// Avoid classpath conflicts with other Gradle plugins (e.g. JReleaser)
367+
// Avoid propagating apparent memory leaks in Asciidoctor/JRuby to Gradle daemon.
368+
setExecutionMode(JAVA_EXEC)
367369
jvm {
368370
maxHeapSize = "512M"
369371
}

gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ version = 6.1.0-SNAPSHOT
33
# For backward compatibility checks
44
apiBaselineVersion = 6.0.1
55

6-
# We need more metaspace due to apparent memory leak in Asciidoctor/JRuby
7-
org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError
6+
org.gradle.jvmargs=-Xmx1g -XX:+HeapDumpOnOutOfMemoryError
87
org.gradle.caching=true
98
org.gradle.parallel=true
109
org.gradle.configuration-cache.parallel=true

0 commit comments

Comments
 (0)