Trust mimalloc to be thread safe (#4649)

This commit is contained in:
Alexander Shabalin
2021-01-22 16:46:03 +03:00
committed by Nikolay Krasko
parent d633b1c545
commit b06a870011
2 changed files with 11 additions and 0 deletions
@@ -272,6 +272,14 @@ private fun createTestTask(
val xmlReport = workingDir.resolve("report.xml")
executable(linkTask.outputFile)
args("--gtest_output=xml:${xmlReport.absoluteFile}")
when (sanitizer) {
SanitizerKind.THREAD -> {
val file = project.file("tsan_suppressions.txt")
inputs.file(file)
environment("TSAN_OPTIONS", "suppressions=${file.absolutePath}")
}
else -> {} // no action required
}
doFirst {
workingDir.mkdirs()
@@ -0,0 +1,3 @@
# Trust mimalloc to be thread safe.
race:^mi_
race:^_mi_