a638788c1a
JVM occasionally (0.5% time) crashes on entering a method with SIGSEGV. It might be due to excessive load on the host machine. Reduce the number of the compiler threads to 6, and do not start all the GC threads immediately. If JVM crashes, copy full diagnostics to stderr. Bug: 132766811 Test: treehugger Change-Id: Ic1b09e0f2cbcf4c22214eaaeae464899b2b99ef7
20 lines
557 B
Makefile
20 lines
557 B
Makefile
# Selects a Java compiler.
|
|
#
|
|
# Outputs:
|
|
# ANDROID_JAVA_TOOLCHAIN -- Directory that contains javac and other java tools
|
|
#
|
|
|
|
ANDROID_COMPILE_WITH_JACK := false
|
|
|
|
ifdef TARGET_BUILD_APPS
|
|
ifndef TURBINE_ENABLED
|
|
TURBINE_ENABLED := false
|
|
endif
|
|
endif
|
|
|
|
ANDROID_JAVA_TOOLCHAIN := $(ANDROID_JAVA_HOME)/bin
|
|
|
|
# TODO(ccross): remove this, it is needed for now because it is used by
|
|
# config.mk before makevars from soong are loaded
|
|
JAVA := $(ANDROID_JAVA_TOOLCHAIN)/java -XX:OnError="cat hs_err_pid%p.log" -XX:CICompilerCount=6 -XX:+UseDynamicNumberOfGCThreads
|
|
|