[K/N] Add cms related targets and compiler option

This commit is contained in:
Pavel Kunyavskiy
2021-11-23 11:55:06 +03:00
committed by Space
parent 03299023f1
commit df4b367296
8 changed files with 119 additions and 56 deletions
+53
View File
@@ -60,9 +60,12 @@ bitcode {
"${target}LegacyMemoryManager",
"${target}ExperimentalMemoryManagerNoop",
"${target}ExperimentalMemoryManagerStms",
"${target}ExperimentalMemoryManagerCms",
"${target}CommonGcNoop",
"${target}CommonGcStms",
"${target}CommonGcCms",
"${target}SameThreadMsGc",
"${target}ConcurrentMsGc",
"${target}NoopGc"
)
includeRuntime()
@@ -182,6 +185,11 @@ bitcode {
includeRuntime()
}
create("experimental_memory_manager_cms", file("src/mm")) {
headersDirs += files("src/gc/cms/cpp", "src/gc/common/cpp")
includeRuntime()
}
create("common_gc_noop", file("src/gc/common")) {
headersDirs += files("src/gc/noop/cpp", "src/mm/cpp")
includeRuntime()
@@ -192,6 +200,11 @@ bitcode {
includeRuntime()
}
create("common_gc_cms", file("src/gc/common")) {
headersDirs += files("src/gc/cms/cpp", "src/mm/cpp")
includeRuntime()
}
create("noop_gc", file("src/gc/noop")) {
headersDirs += files("src/gc/noop/cpp", "src/gc/common/cpp", "src/mm/cpp")
includeRuntime()
@@ -201,6 +214,11 @@ bitcode {
headersDirs += files("src/gc/stms/cpp", "src/gc/common/cpp", "src/mm/cpp")
includeRuntime()
}
create("concurrent_ms_gc", file("src/gc/cms")) {
headersDirs += files("src/gc/cms/cpp", "src/gc/common/cpp", "src/mm/cpp")
includeRuntime()
}
}
targetList.forEach { targetName ->
@@ -272,6 +290,41 @@ targetList.forEach { targetName ->
includeRuntime()
})
allTests.addAll(createTestTasks(
project,
targetName,
"${targetName}ExperimentalMMCmsMimallocRuntimeTests",
listOf(
"${targetName}Runtime",
"${targetName}ExperimentalMemoryManagerCms",
"${targetName}CommonGcCms",
"${targetName}ConcurrentMsGc",
"${targetName}Mimalloc",
"${targetName}OptAlloc",
"${targetName}Objc"
)
) {
headersDirs += files("src/gc/cms/cpp", "src/gc/common/cpp", "src/mm/cpp")
includeRuntime()
})
allTests.addAll(createTestTasks(
project,
targetName,
"${targetName}ExperimentalMMCmsStdAllocRuntimeTests",
listOf(
"${targetName}Runtime",
"${targetName}ExperimentalMemoryManagerCms",
"${targetName}CommonGcCms",
"${targetName}ConcurrentMsGc",
"${targetName}StdAlloc",
"${targetName}Objc"
)
) {
headersDirs += files("src/gc/cms/cpp", "src/gc/common/cpp", "src/mm/cpp")
includeRuntime()
})
allTests.addAll(createTestTasks(
project,
targetName,