test/hotspot/jtreg/Makefile
changeset 48096 513e0b467a92
parent 47218 918745561887
child 48624 5f86c562a39e
equal deleted inserted replaced
48095:528144831ba3 48096:513e0b467a92
    60       NUM_CORES := 1 # fallback
    60       NUM_CORES := 1 # fallback
    61     endif
    61     endif
    62   endif
    62   endif
    63 endif
    63 endif
    64 
    64 
       
    65 ifndef CONCURRENCY_FACTOR
       
    66   CONCURRENCY_FACTOR = 1
       
    67 endif
       
    68 
    65 # Concurrency based on min(cores / 2, 12)
    69 # Concurrency based on min(cores / 2, 12)
    66 CONCURRENCY := $(shell expr $(NUM_CORES) / 2)
    70 CONCURRENCY := $(shell awk 'BEGIN { printf "%.0f", $(NUM_CORES) / 2 * $(CONCURRENCY_FACTOR) }')
    67 ifeq ($(CONCURRENCY), 0)
    71 ifeq ($(CONCURRENCY), 0)
    68   CONCURRENCY := 1
    72   CONCURRENCY := 1
    69 else ifeq ($(shell expr $(CONCURRENCY) \> 12), 1)
    73 else ifeq ($(shell expr $(CONCURRENCY) \> 12), 1)
    70   CONCURRENCY := 12
    74   CONCURRENCY := 12
    71 endif
    75 endif