changeset 47958:513e0b467a92

8191768: Introduce a concurrency factor to be able to scale up or down jtreg concurrency when running Hotspot tests Reviewed-by: erikj
author ctornqvi
date Wed, 22 Nov 2017 14:31:48 -0500
parents 528144831ba3
children 8707ca0f414a b38d8aadcada 8d15b1369c7a
files test/hotspot/jtreg/Makefile
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)