8191768: Introduce a concurrency factor to be able to scale up or down jtreg concurrency when running Hotspot tests
Reviewed-by: erikj
This commit is contained in:
parent
a7c84b45b4
commit
cd0c6d0fae
@ -62,8 +62,12 @@ ifeq ($(findstring CYGWIN,$(UNAME_S)), CYGWIN)
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user