8014819: set max size for jtreg testvms
authormduigou
Wed, 22 May 2013 09:59:37 -0700
changeset 17705 b50b9139c47e
parent 17704 dab42001bbe0
child 17707 7853cc17a828
8014819: set max size for jtreg testvms Reviewed-by: alanb, darcy
jdk/test/Makefile
--- a/jdk/test/Makefile	Wed May 22 13:50:53 2013 +0100
+++ b/jdk/test/Makefile	Wed May 22 09:59:37 2013 -0700
@@ -657,9 +657,12 @@
 # Multiple by 4 the timeout numbers
 JTREG_TIMEOUT_OPTION =  -timeoutFactor:4
 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
-# Boost the max memory for jtreg to avoid gc thrashing
+# Set the max memory for jtreg control vm
 JTREG_MEMORY_OPTION = -J-Xmx512m
 JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)
+# Set the max memory for jtreg target test vms
+JTREG_TESTVM_MEMORY_OPTION = -vmoption:-Xmx512m
+JTREG_TEST_OPTIONS += $(JTREG_TESTVM_MEMORY_OPTION)
 
 # Make sure jtreg exists
 $(JTREG): $(JT_HOME)