projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07f7991
)
tsan: minor optimizations for Go runtime
author
Dmitry Vyukov
<dvyukov@google.com>
Fri, 6 Jun 2014 16:06:19 +0000
(16:06 +0000)
committer
Dmitry Vyukov
<dvyukov@google.com>
Fri, 6 Jun 2014 16:06:19 +0000
(16:06 +0000)
llvm-svn: 210351
compiler-rt/lib/tsan/rtl/tsan_rtl.cc
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc
b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc
index
add6bd7
..
c34510a
100644
(file)
--- a/
compiler-rt/lib/tsan/rtl/tsan_rtl.cc
+++ b/
compiler-rt/lib/tsan/rtl/tsan_rtl.cc
@@
-706,7
+706,7
@@
void MemoryAccess(ThreadState *thr, uptr pc, uptr addr,
}
#endif
- if (*shadow_mem == kShadowRodata) {
+ if (
kCppMode &&
*shadow_mem == kShadowRodata) {
// Access to .rodata section, no races here.
// Measurements show that it can be 10-20% of all memory accesses.
StatInc(thr, StatMop);
@@
-751,6
+751,7
@@
void MemoryAccess(ThreadState *thr, uptr pc, uptr addr,
}
// Called by MemoryAccessRange in tsan_rtl_thread.cc
+ALWAYS_INLINE USED
void MemoryAccessImpl(ThreadState *thr, uptr addr,
int kAccessSizeLog, bool kAccessIsWrite, bool kIsAtomic,
u64 *shadow_mem, Shadow cur) {