This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new e9c7cc446e Refactor unit test memory limit so it is unset by default
e9c7cc446e is described below

commit e9c7cc446e8887353ec07610a06c1ebc9c33630a
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Feb 5 08:37:13 2025 +0000

    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.
---
 build.xml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/build.xml b/build.xml
index b0ad36272f..fe4624313b 100644
--- a/build.xml
+++ b/build.xml
@@ -2027,6 +2027,8 @@
   <condition property="opens.javautilconcurrent" 
value="--add-opens=java.base/java.util.concurrent=ALL-UNNAMED" 
else="-Dtest14=1">
     <javaversion atleast="9"/>
   </condition>
+  <!-- Set memory properties (unset by default) -->
+  <property name="test.xmx" value="-Dnoop"/>
 
   <macrodef name="runtests"
             description="Runs the unit tests using the specified connector.
@@ -2046,11 +2048,11 @@
           errorproperty="test.result.error"
           failureproperty="test.result.failure"
           haltonfailure="${test.haltonfailure}"
-          threads="${test.threads}"
-          maxmemory="256m">
+          threads="${test.threads}">
 
           <jvmarg value="${test.jvmarg.egd}"/>
           <jvmarg value="-Dfile.encoding=UTF-8"/>
+          <jvmarg value="${test.xmx}"/>
           <jvmarg value="-Djava.library.path=${test.apr.loc}"/>
           <jvmarg value="${test.formatter}"/>
           <jvmarg 
value="-Djava.net.preferIPv4Stack=${java.net.preferIPv4Stack}"/>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to