< prev index next >
test/Makefile
Print this page
*** 64,89 ****
--- 64,92 ----
SLASH_JAVA = /java
ARCH = $(shell uname -p)
ifeq ($(ARCH), i386)
ARCH=i586
endif
+ NUM_CORES := $(shell LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line)
endif
ifeq ($(UNAME_S), Linux)
PLATFORM = linux
SLASH_JAVA = /java
ARCH = $(shell uname -m)
ifeq ($(ARCH), i386)
ARCH = i586
endif
+ NUM_CORES := $(shell cat /proc/cpuinfo | grep -c processor)
endif
ifeq ($(UNAME_S), Darwin)
PLATFORM = bsd
SLASH_JAVA = /java
ARCH = $(shell uname -m)
ifeq ($(ARCH), i386)
ARCH = i586
endif
+ NUM_CORES := $(shell /usr/sbin/sysctl -n hw.ncpu)
endif
ifeq ($(findstring BSD,$(UNAME_S)), BSD)
PLATFORM = bsd
SLASH_JAVA = /java
ARCH = $(shell uname -m)
*** 113,122 ****
--- 116,133 ----
ARCH = i586
endif
endif
endif
EXESUFFIX = .exe
+ # Don't enable this on Windows until JDK-8159799 has been resolved
+ # ifneq ($(NUMBER_OF_PROCESSORS), )
+ # NUM_CORES := $(NUMBER_OF_PROCESSORS)
+ # else
+ # ifneq ($(HOTSPOT_BUILD_JOBS), )
+ # NUM_CORES := $(HOTSPOT_BUILD_JOBS)
+ # endif
+ # endif
endif
ifdef ALT_SLASH_JAVA
SLASH_JAVA = $(ALT_SLASH_JAVA)
endif
*** 306,318 ****
# When called from JPRT the TESTDIRS variable is set to the jtreg tests to run
ifdef TESTDIRS
TEST_SELECTION = $(TESTDIRS)
endif
! ifdef CONCURRENCY
! JTREG_BASIC_OPTIONS += -concurrency:$(CONCURRENCY)
endif
ifdef EXTRA_JTREG_OPTIONS
JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
endif
# Default JTREG to run
--- 317,342 ----
# When called from JPRT the TESTDIRS variable is set to the jtreg tests to run
ifdef TESTDIRS
TEST_SELECTION = $(TESTDIRS)
endif
! # Concurrency based on min(cores / 2, 12)
! ifdef NUM_CORES
! CONCURRENCY := $(shell expr $(NUM_CORES) / 2)
! ifeq ($(CONCURRENCY), 0)
! CONCURRENCY := 1
! else ifeq ($(shell expr $(CONCURRENCY) \> 12), 1)
! CONCURRENCY := 12
! endif
! else
! CONCURRENCY := 1
endif
+ JTREG_BASIC_OPTIONS += -concurrency:$(CONCURRENCY)
+
+ # Make sure MaxRAMFraction is high enough to not cause OOM or swapping since we may end up with a lot of JVM's
+ JTREG_BASIC_OPTIONS += -vmoption:-XX:MaxRAMFraction=$(shell expr $(CONCURRENCY) \* 4)
+
ifdef EXTRA_JTREG_OPTIONS
JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
endif
# Default JTREG to run
< prev index next >