From c3ab87f52b6c8fda53ab379dd93e7980300c2e29 Mon Sep 17 00:00:00 2001 From: Vyacheslav Gerasimov Date: Mon, 4 Mar 2024 13:38:00 +0100 Subject: [PATCH] Build: Use reservedCodeCacheSizeMb in test process heap size calculation #KTI-1609 --- .../buildsrc-compat/src/main/kotlin/tasks.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/tasks.kt b/repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/tasks.kt index a86a9751331..895783db4c3 100644 --- a/repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/tasks.kt +++ b/repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/tasks.kt @@ -224,7 +224,7 @@ fun Project.projectTest( else defaultMaxMemoryPerTestWorkerMb - maxHeapSize = "${maxHeapSizeMb ?: (memoryPerTestProcessMb - maxMetaspaceSizeMb)}m" + maxHeapSize = "${maxHeapSizeMb ?: (memoryPerTestProcessMb - maxMetaspaceSizeMb - reservedCodeCacheSizeMb)}m" usesService(concurrencyLimitService) if (minHeapSizeMb != null) {