ICU-5801 Merging the fix for OOM reproduced on IBM Java5/Windows from trunk. Add -Xdisableexcessivegc in the test JVM arg to prevent the JVM to throw OOM before the heap usage reaching the limit.
X-SVN-Rev: 22652
diff --git a/build.xml b/build.xml
index 8fd0cfd..30b6ab7 100644
--- a/build.xml
+++ b/build.xml
@@ -192,6 +192,14 @@
<condition property="test.jvm.args" value="-Xms96m -Xmx128m">
<isset property="before.java14" />
</condition>
+ <condition property="test.jvm.args" value="-ea -Xms96m -Xmx128m -Xdisableexcessivegc">
+ <and>
+ <not>
+ <isset property="before.java15" />
+ </not>
+ <equals arg1="${java.vm.vendor}" arg2="IBM Corporation"/>
+ </and>
+ </condition>
<condition property="test.jvm.args" value="-ea -Xms96m -Xmx128m">
<not>
<isset property="test.jvm.args" />