Skip to content

Commit e56500b

Browse files
committed
Refactor unit test memory limit so it is unset by default
A fixed limit didn't work for all use cases. This approach restores the previous default and allows developers to configure their own if required.
1 parent fdd9424 commit e56500b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,6 +2031,8 @@
20312031
<property name="opens.sunrmi" value="--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"/>
20322032
<property name="opens.javautil" value="--add-opens=java.base/java.util=ALL-UNNAMED"/>
20332033
<property name="opens.javautilconcurrent" value="--add-opens=java.base/java.util.concurrent=ALL-UNNAMED"/>
2034+
<!-- Set memory properties (unset by default) -->
2035+
<property name="test.xmx" value="-Dnoop"/>
20342036

20352037
<macrodef name="runtests"
20362038
description="Runs the unit tests using the specified connector.
@@ -2050,11 +2052,11 @@
20502052
errorproperty="test.result.error"
20512053
failureproperty="test.result.failure"
20522054
haltonfailure="${test.haltonfailure}"
2053-
threads="${test.threads}"
2054-
maxmemory="256m">
2055+
threads="${test.threads}">
20552056

20562057
<jvmarg value="${test.jvmarg.egd}"/>
20572058
<jvmarg value="-Dfile.encoding=UTF-8"/>
2059+
<jvmarg value="${test.xmx}"/>
20582060
<jvmarg value="${runtests.librarypath}"/>
20592061
<jvmarg value="${test.formatter}"/>
20602062
<jvmarg value="-Djava.net.preferIPv4Stack=${java.net.preferIPv4Stack}"/>

0 commit comments

Comments
 (0)