8191768: Introduce a concurrency factor to be able to scale up or down jtreg concurrency when running Hotspot tests
authorctornqvi
Wed, 22 Nov 2017 14:31:48 -0500
changeset 48096 513e0b467a92
parent 48095 528144831ba3
child 48097 8707ca0f414a
child 48098 b38d8aadcada
child 48105 8d15b1369c7a
8191768: Introduce a concurrency factor to be able to scale up or down jtreg concurrency when running Hotspot tests Reviewed-by: erikj
test/hotspot/jtreg/Makefile
--- 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)