8191768: Introduce a concurrency factor to be able to scale up or down jtreg concurrency when running Hotspot tests
Reviewed-by: erikj
--- a/test/hotspot/jtreg/Makefile Wed Nov 22 09:27:06 2017 -0800
+++ b/test/hotspot/jtreg/Makefile Wed Nov 22 14:31:48 2017 -0500
@@ -62,8 +62,12 @@
endif
endif
+ifndef CONCURRENCY_FACTOR
+ CONCURRENCY_FACTOR = 1
+endif
+
# Concurrency based on min(cores / 2, 12)
-CONCURRENCY := $(shell expr $(NUM_CORES) / 2)
+CONCURRENCY := $(shell awk 'BEGIN { printf "%.0f", $(NUM_CORES) / 2 * $(CONCURRENCY_FACTOR) }')
ifeq ($(CONCURRENCY), 0)
CONCURRENCY := 1
else ifeq ($(shell expr $(CONCURRENCY) \> 12), 1)