8172912: JTReg concurrency value must be limited
authorihse
Fri, 03 Feb 2017 14:32:38 +0100
changeset 43386 df350c85390b
parent 43385 e5c5721fe29b
child 43387 0fa3d82acf45
8172912: JTReg concurrency value must be limited Reviewed-by: erikj
test/Makefile
--- a/test/Makefile	Thu Feb 02 21:55:29 2017 +0000
+++ b/test/Makefile	Fri Feb 03 14:32:38 2017 +0100
@@ -60,7 +60,12 @@
 -include $(TOPDIR)/closed/test/Makefile
 
 ifeq ($(TEST_JOBS), 0)
-  JDK_TEST_JOBS=$(JOBS)
+  ifeq ($(shell $(EXPR) $(JOBS) \> 50), 1)
+    # JTReg cannot handle more than 50 in concurrency
+    JDK_TEST_JOBS=50
+  else
+    JDK_TEST_JOBS=$(JOBS)
+  endif
 else
   JDK_TEST_JOBS=$(TEST_JOBS)
 endif