Fix xmx setting for the daemon in tests
This commit is contained in:
@@ -85,7 +85,7 @@ class CompilerDaemonTest : KotlinIntegrationTestBase() {
|
|||||||
verbose = true,
|
verbose = true,
|
||||||
reportPerf = true)
|
reportPerf = true)
|
||||||
|
|
||||||
fun makeTestDaemonJvmOptions(logFile: File? = null, xmx: Int = 256): DaemonJVMOptions {
|
fun makeTestDaemonJvmOptions(logFile: File? = null, xmx: Int = 384): DaemonJVMOptions {
|
||||||
val additionalArgs = arrayListOf<String>()
|
val additionalArgs = arrayListOf<String>()
|
||||||
if (logFile != null) {
|
if (logFile != null) {
|
||||||
additionalArgs.add("D$COMPILE_DAEMON_LOG_PATH_PROPERTY=\"${logFile.loggerCompatiblePath}\"")
|
additionalArgs.add("D$COMPILE_DAEMON_LOG_PATH_PROPERTY=\"${logFile.loggerCompatiblePath}\"")
|
||||||
@@ -94,7 +94,7 @@ class CompilerDaemonTest : KotlinIntegrationTestBase() {
|
|||||||
return configureDaemonJVMOptions(
|
return configureDaemonJVMOptions(
|
||||||
baseOpts,
|
baseOpts,
|
||||||
*additionalArgs.toTypedArray(),
|
*additionalArgs.toTypedArray(),
|
||||||
inheritMemoryLimits = xmx > 0,
|
inheritMemoryLimits = xmx <= 0,
|
||||||
inheritAdditionalProperties = false,
|
inheritAdditionalProperties = false,
|
||||||
inheritOtherJvmOptions = false)
|
inheritOtherJvmOptions = false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user