make/RunTests.gmk
changeset 47938 a182ac1491d7
parent 47937 c1437939b0d8
child 47939 fe7596497fb0
equal deleted inserted replaced
47937:c1437939b0d8 47938:a182ac1491d7
   364     # User has specified TEST_JOBS, use that as fallback default
   364     # User has specified TEST_JOBS, use that as fallback default
   365     $$(eval $$(call SetJtregValue,$1,JTREG_JOBS,$$(TEST_JOBS)))
   365     $$(eval $$(call SetJtregValue,$1,JTREG_JOBS,$$(TEST_JOBS)))
   366   else
   366   else
   367     # Use JOBS as default (except for hotspot)
   367     # Use JOBS as default (except for hotspot)
   368     $$(eval $$(call SetJtregValue,$1,JTREG_JOBS,$$(JOBS)))
   368     $$(eval $$(call SetJtregValue,$1,JTREG_JOBS,$$(JOBS)))
   369   endif
       
   370 
       
   371   ifeq ($$(shell $$(EXPR) $$($1_JTREG_JOBS) \> 50), 1)
       
   372     # Until CODETOOLS-7901892 is fixed, JTreg cannot handle more than 50 jobs
       
   373     $1_JTREG_JOBS := 50
       
   374   endif
   369   endif
   375 
   370 
   376   # Make sure MaxRAMPercentage is high enough to not cause OOM or swapping since
   371   # Make sure MaxRAMPercentage is high enough to not cause OOM or swapping since
   377   # we may end up with a lot of JVM's
   372   # we may end up with a lot of JVM's
   378   $1_JTREG_MAX_RAM_PERCENTAGE := $$(shell $$(EXPR) 25 / $$($1_JTREG_JOBS))
   373   $1_JTREG_MAX_RAM_PERCENTAGE := $$(shell $$(EXPR) 25 / $$($1_JTREG_JOBS))