Skip to content

Commit

Permalink
JIT-exclusions for test runs to workaround bug in Java 23
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-herrmann committed Sep 14, 2024
1 parent 3c49c50 commit 0dd4ed0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion org.eclipse.jdt.core.tests.model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

<properties>
<defaultSigning-excludeInnerJars>true</defaultSigning-excludeInnerJars>
<jitExclusion>-XX:CompileCommand=exclude,org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer::getExtendedRange</jitExclusion>

</properties>

<build>
Expand All @@ -32,7 +34,7 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<argLine>-Xmx1G -Djdt.default.test.compliance=1.8 -DDetectVMInstallationsJob.disabled=true ${tycho.surefire.argLine}</argLine>
<argLine>${jitExclusion} -Xmx1G -Djdt.default.test.compliance=1.8 -DDetectVMInstallationsJob.disabled=true ${tycho.surefire.argLine}</argLine>
<includes>
<include>org/eclipse/jdt/core/tests/RunAllJdtModelTestsTracing.class</include>
</includes>
Expand Down
3 changes: 2 additions & 1 deletion org.eclipse.jdt.core.tests.model/test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<property name="plugin-name" value="org.eclipse.jdt.core.tests.model"/>
<property name="library-file"
value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/>
<property name="jitExclusion" value="-XX:CompileCommand=exclude,org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer::getExtendedRange"/>

<!-- This target holds all initialization code that needs to be done for -->
<!-- all tests that are to be run. Initialization for individual tests -->
Expand All @@ -43,7 +44,7 @@
<ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
<!-- Use a subdir 'data' so that the JCL jars are put in jdt-model-folder and are deleted at the end of the tests. -->
<property name="data-dir" value="${jdt-model-folder}/data"/>
<property name="vmargs" value="-Xmx800M -XX:+HeapDumpOnOutOfMemoryError -DDetectVMInstallationsJob.disabled=true -DstoreMemory=jdtcoremodel_mem_trace,dir=${basedir}/../.. -Djdt.default.test.compliance=1.8"/>
<property name="vmargs" value="${jitExclusion} -Xmx800M -XX:+HeapDumpOnOutOfMemoryError -DDetectVMInstallationsJob.disabled=true -DstoreMemory=jdtcoremodel_mem_trace,dir=${basedir}/../.. -Djdt.default.test.compliance=1.8"/>
<property name="plugin-name" value="${plugin-name}"/>
<property name="classname"
value="org.eclipse.jdt.core.tests.model.AllJavaModelTests"/>
Expand Down

0 comments on commit 0dd4ed0

Please sign in to comment.