Skip to content

Commit 16c1eee

Browse files
committed
Try to work around openj9 jit crash
1 parent 75aaad5 commit 16c1eee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

conventions/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,10 @@ tasks.withType<Test>().configureEach {
342342
val useJ9 = gradle.startParameter.projectProperties["testJavaVM"]?.run { this == "openj9" }
343343
?: false
344344
if (useJ9 && testJavaVersion != null && testJavaVersion.isJava8) {
345-
jvmArgs("-Xjit:exclude={io/opentelemetry/testing/internal/io/netty/buffer/HeapByteBufUtil.*},exclude={io/opentelemetry/testing/internal/io/netty/buffer/UnpooledHeapByteBuf.*},exclude={io/opentelemetry/testing/internal/io/netty/buffer/AbstractByteBuf.*}")
345+
jvmArgs("-Xjit:exclude={io/opentelemetry/testing/internal/io/netty/buffer/HeapByteBufUtil.*}," +
346+
"exclude={io/opentelemetry/testing/internal/io/netty/buffer/UnpooledHeapByteBuf.*}," +
347+
"exclude={io/opentelemetry/testing/internal/io/netty/buffer/AbstractByteBuf.*}," +
348+
"exclude={io/opentelemetry/testing/internal/io/netty/handler/codec/base64/Base64.*}")
346349
}
347350

348351
// There's no real harm in setting this for all tests even if any happen to not be using context

0 commit comments

Comments
 (0)