334 # Make sure MaxRAMPercentage is high enough to not cause OOM or swapping since 335 # we may end up with a lot of JVM's 336 $1_JTREG_MAX_RAM_PERCENTAGE := $$(shell $$(EXPR) 25 / $$($1_JTREG_JOBS)) 337 338 JTREG_TIMEOUT ?= 4 339 JTREG_VERBOSE ?= fail,error,summary 340 JTREG_RETAIN ?= fail,error 341 342 ifneq ($$($1_JTREG_MAX_MEM), 0) 343 $1_JTREG_BASIC_OPTIONS += -vmoption:-Xmx$$($1_JTREG_MAX_MEM) 344 $1_JTREG_LAUNCHER_OPTIONS += -Xmx$$($1_JTREG_MAX_MEM) 345 endif 346 347 $1_JTREG_BASIC_OPTIONS += -$$($1_JTREG_TEST_MODE) \ 348 -verbose:$$(JTREG_VERBOSE) -retain:$$(JTREG_RETAIN) \ 349 -concurrency:$$($1_JTREG_JOBS) -timeoutFactor:$$(JTREG_TIMEOUT) \ 350 -vmoption:-XX:MaxRAMPercentage=$$($1_JTREG_MAX_RAM_PERCENTAGE) 351 352 $1_JTREG_BASIC_OPTIONS += -automatic -keywords:\!ignore -ignore:quiet 353 354 # Some tests needs to find a boot JDK using the JDK8_HOME variable. 355 $1_JTREG_BASIC_OPTIONS += -e:JDK8_HOME=$$(BOOT_JDK) 356 357 $1_JTREG_BASIC_OPTIONS += \ 358 $$(addprefix -javaoption:, $$(JTREG_JAVA_OPTIONS)) \ 359 $$(addprefix -vmoption:, $$(JTREG_VM_OPTIONS)) \ 360 # 361 362 ifeq ($$($1_JTREG_ASSERT), true) 363 $1_JTREG_BASIC_OPTIONS += -ea -esa 364 endif 365 366 ifneq ($$($1_JTREG_NATIVEPATH), ) 367 $1_JTREG_BASIC_OPTIONS += -nativepath:$$($1_JTREG_NATIVEPATH) 368 endif 369 370 ifneq ($$(JIB_JAR), ) 371 $1_JTREG_BASIC_OPTIONS += -cpa:$$(JIB_JAR) 372 endif 373 | 334 # Make sure MaxRAMPercentage is high enough to not cause OOM or swapping since 335 # we may end up with a lot of JVM's 336 $1_JTREG_MAX_RAM_PERCENTAGE := $$(shell $$(EXPR) 25 / $$($1_JTREG_JOBS)) 337 338 JTREG_TIMEOUT ?= 4 339 JTREG_VERBOSE ?= fail,error,summary 340 JTREG_RETAIN ?= fail,error 341 342 ifneq ($$($1_JTREG_MAX_MEM), 0) 343 $1_JTREG_BASIC_OPTIONS += -vmoption:-Xmx$$($1_JTREG_MAX_MEM) 344 $1_JTREG_LAUNCHER_OPTIONS += -Xmx$$($1_JTREG_MAX_MEM) 345 endif 346 347 $1_JTREG_BASIC_OPTIONS += -$$($1_JTREG_TEST_MODE) \ 348 -verbose:$$(JTREG_VERBOSE) -retain:$$(JTREG_RETAIN) \ 349 -concurrency:$$($1_JTREG_JOBS) -timeoutFactor:$$(JTREG_TIMEOUT) \ 350 -vmoption:-XX:MaxRAMPercentage=$$($1_JTREG_MAX_RAM_PERCENTAGE) 351 352 $1_JTREG_BASIC_OPTIONS += -automatic -keywords:\!ignore -ignore:quiet 353 354 # Make it possible to specify the JIB_DATA_DIR for tests using the 355 # JIB Artifact resolver 356 $1_JTREG_BASIC_OPTIONS += -e:JIB_DATA_DIR 357 # Some tests needs to find a boot JDK using the JDK8_HOME variable. 358 $1_JTREG_BASIC_OPTIONS += -e:JDK8_HOME=$$(BOOT_JDK) 359 360 $1_JTREG_BASIC_OPTIONS += \ 361 $$(addprefix -javaoption:, $$(JTREG_JAVA_OPTIONS)) \ 362 $$(addprefix -vmoption:, $$(JTREG_VM_OPTIONS)) \ 363 # 364 365 ifeq ($$($1_JTREG_ASSERT), true) 366 $1_JTREG_BASIC_OPTIONS += -ea -esa 367 endif 368 369 ifneq ($$($1_JTREG_NATIVEPATH), ) 370 $1_JTREG_BASIC_OPTIONS += -nativepath:$$($1_JTREG_NATIVEPATH) 371 endif 372 373 ifneq ($$(JIB_JAR), ) 374 $1_JTREG_BASIC_OPTIONS += -cpa:$$(JIB_JAR) 375 endif 376 |