Rework default JVM arguments. (#2633)

This commit is contained in:
Nikolay Igotti
2019-02-07 13:08:49 +03:00
committed by GitHub
parent 0078f20992
commit 2d882d1b6c
6 changed files with 16 additions and 8 deletions
@@ -249,6 +249,10 @@ open class HostManager(protected val distribution: Distribution = Distribution()
else -> throw TargetSupportException("Unknown host target: ${host_os()} ${host_arch()}")
}
// Note Hotspot-specific VM option enforcing C1-only, critical for decent compilation speed.
val defaultJvmArgs = listOf("-XX:TieredStopAtLevel=1", "-ea", "-Dfile.encoding=UTF-8")
val regularJvmArgs = defaultJvmArgs + "-Xmx3G"
val hostIsMac = (host.family == Family.OSX)
val hostIsLinux = (host.family == Family.LINUX)
val hostIsMingw = (host.family == Family.MINGW)