Trust mimalloc to be thread safe (#4649)
This commit is contained in:
committed by
Nikolay Krasko
parent
d633b1c545
commit
b06a870011
+8
@@ -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_
|
||||
Reference in New Issue
Block a user