mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 11:19:09 +00:00
Creating multiple JITs on X86 in multiple threads causes multiple writes (of
the same value) to this variable. This code could be refactored, but it doesn't matter since the old JIT is going away. Add tsan annotations to ignore the race. llvm-svn: 145745
This commit is contained in:
parent
d1968c9ed6
commit
2b2f028dcc
@ -424,7 +424,9 @@ X86CompilationCallback2(intptr_t *StackPtr, intptr_t RetAddr) {
|
||||
|
||||
TargetJITInfo::LazyResolverFn
|
||||
X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {
|
||||
TsanIgnoreWritesBegin();
|
||||
JITCompilerFunction = F;
|
||||
TsanIgnoreWritesEnd();
|
||||
|
||||
#if defined (X86_32_JIT) && !defined (_MSC_VER)
|
||||
if (Subtarget->hasSSE1())
|
||||
|
Loading…
Reference in New Issue
Block a user