Replace DEX_FLAGS by flags for D8 and R8.
This adds the heap space flag currently set in wrappers. Bug: b/227746536 Test: manual Change-Id: Ic3cb8feb7a09d690ecd309162236e49a8d1e52c6
This commit is contained in:
@@ -68,6 +68,11 @@ var (
|
||||
"-J-XX:+TieredCompilation",
|
||||
"-J-XX:TieredStopAtLevel=1",
|
||||
}
|
||||
dexerJavaVmFlagsList = []string{
|
||||
`-JXX:OnError="cat hs_err_pid%p.log"`,
|
||||
"-JXX:CICompilerCount=6",
|
||||
"-JXX:+UseDynamicNumberOfGCThreads",
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -83,19 +88,14 @@ func init() {
|
||||
|
||||
// D8 invocations are shorter lived, so we restrict their JIT tiering relative to R8.
|
||||
// Note that the `-JXX` prefix syntax is specific to the R8/D8 invocation wrappers.
|
||||
exportedVars.ExportStringListStaticVariable("D8Flags", []string{
|
||||
`-JXX:OnError="cat hs_err_pid%p.log"`,
|
||||
"-JXX:CICompilerCount=6",
|
||||
"-JXX:+UseDynamicNumberOfGCThreads",
|
||||
exportedVars.ExportStringListStaticVariable("D8Flags", append([]string{
|
||||
"-JXmx2048M",
|
||||
"-JXX:+TieredCompilation",
|
||||
"-JXX:TieredStopAtLevel=1",
|
||||
})
|
||||
|
||||
exportedVars.ExportStringListStaticVariable("R8Flags", []string{
|
||||
`-JXX:OnError="cat hs_err_pid%p.log"`,
|
||||
"-JXX:CICompilerCount=6",
|
||||
"-JXX:+UseDynamicNumberOfGCThreads",
|
||||
})
|
||||
}, dexerJavaVmFlagsList...))
|
||||
exportedVars.ExportStringListStaticVariable("R8Flags", append([]string{
|
||||
"-JXmx2048M",
|
||||
}, dexerJavaVmFlagsList...))
|
||||
|
||||
exportedVars.ExportStringListStaticVariable("CommonJdkFlags", []string{
|
||||
`-Xmaxerrs 9999999`,
|
||||
|
Reference in New Issue
Block a user