53 ifeq ($(findstring CYGWIN,$(UNAME_S)), CYGWIN) 54 ifneq ($(NUMBER_OF_PROCESSORS), ) 55 NUM_CORES := $(NUMBER_OF_PROCESSORS) 56 else 57 ifneq ($(HOTSPOT_BUILD_JOBS), ) 58 NUM_CORES := $(HOTSPOT_BUILD_JOBS) 59 else 60 NUM_CORES := 1 # fallback 61 endif 62 endif 63 endif 64 65 # Concurrency based on min(cores / 2, 12) 66 CONCURRENCY := $(shell expr $(NUM_CORES) / 2) 67 ifeq ($(CONCURRENCY), 0) 68 CONCURRENCY := 1 69 else ifeq ($(shell expr $(CONCURRENCY) \> 12), 1) 70 CONCURRENCY := 12 71 endif 72 73 # Make sure MaxRAMFraction is high enough to not cause OOM or swapping since we may end up with a lot of JVM's 74 JTREG_BASIC_OPTIONS += -vmoption:-XX:MaxRAMFraction=$(shell expr $(CONCURRENCY) \* 4) 75 76 # Include the common base file with most of the logic 77 include ../../test/TestCommon.gmk 78 79 ################################################################ 80 # Default make rule (runs jtreg_tests) 81 all: hotspot_all 82 @$(ECHO) "Testing completed successfully" 83 84 # Support "hotspot_" prefixed test make targets (too) 85 # The hotspot_% targets are used by the top level Makefile 86 # Unless explicitly defined below, hotspot_<x> is interpreted as a jtreg test group name 87 hotspot_%: 88 $(ECHO) "Running tests: $@" 89 $(MAKE) -j 1 TEST_SELECTION=":$@" UNIQUE_DIR=$@ jtreg_tests; 90 91 hotspot_internal: 92 $(ALT_OUTPUTDIR)/jdk/bin/java -XX:+ExecuteInternalVMTests -XX:+ShowMessageBoxOnError -version 93 94 ################################################################ | 53 ifeq ($(findstring CYGWIN,$(UNAME_S)), CYGWIN) 54 ifneq ($(NUMBER_OF_PROCESSORS), ) 55 NUM_CORES := $(NUMBER_OF_PROCESSORS) 56 else 57 ifneq ($(HOTSPOT_BUILD_JOBS), ) 58 NUM_CORES := $(HOTSPOT_BUILD_JOBS) 59 else 60 NUM_CORES := 1 # fallback 61 endif 62 endif 63 endif 64 65 # Concurrency based on min(cores / 2, 12) 66 CONCURRENCY := $(shell expr $(NUM_CORES) / 2) 67 ifeq ($(CONCURRENCY), 0) 68 CONCURRENCY := 1 69 else ifeq ($(shell expr $(CONCURRENCY) \> 12), 1) 70 CONCURRENCY := 12 71 endif 72 73 # Make sure MaxRAMPercentage is high enough to not cause OOM or swapping since we may end up with a lot of JVM's 74 JTREG_BASIC_OPTIONS += -vmoption:-XX:MaxRAMPercentage=$(shell expr 25 / $(CONCURRENCY)) 75 76 # Include the common base file with most of the logic 77 include ../../test/TestCommon.gmk 78 79 ################################################################ 80 # Default make rule (runs jtreg_tests) 81 all: hotspot_all 82 @$(ECHO) "Testing completed successfully" 83 84 # Support "hotspot_" prefixed test make targets (too) 85 # The hotspot_% targets are used by the top level Makefile 86 # Unless explicitly defined below, hotspot_<x> is interpreted as a jtreg test group name 87 hotspot_%: 88 $(ECHO) "Running tests: $@" 89 $(MAKE) -j 1 TEST_SELECTION=":$@" UNIQUE_DIR=$@ jtreg_tests; 90 91 hotspot_internal: 92 $(ALT_OUTPUTDIR)/jdk/bin/java -XX:+ExecuteInternalVMTests -XX:+ShowMessageBoxOnError -version 93 94 ################################################################ |