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:
decc03e
)
tsan: ensure than func entry/exit are inlined
author
Dmitry Vyukov
<dvyukov@google.com>
Fri, 23 Nov 2012 07:14:11 +0000
(07:14 +0000)
committer
Dmitry Vyukov
<dvyukov@google.com>
Fri, 23 Nov 2012 07:14:11 +0000
(07:14 +0000)
llvm-svn: 168506
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
0ad962e
..
cfdd13e
100644
(file)
--- a/
compiler-rt/lib/tsan/rtl/tsan_rtl.cc
+++ b/
compiler-rt/lib/tsan/rtl/tsan_rtl.cc
@@
-517,6
+517,7
@@
void MemoryRangeImitateWrite(ThreadState *thr, uptr pc, uptr addr, uptr size) {
MemoryRangeSet(thr, pc, addr, size, s.raw());
}
+ALWAYS_INLINE
void FuncEntry(ThreadState *thr, uptr pc) {
DCHECK_EQ(thr->in_rtl, 0);
StatInc(thr, StatFuncEnter);
@@
-546,6
+547,7
@@
void FuncEntry(ThreadState *thr, uptr pc) {
thr->shadow_stack_pos++;
}
+ALWAYS_INLINE
void FuncExit(ThreadState *thr) {
DCHECK_EQ(thr->in_rtl, 0);
StatInc(thr, StatFuncExit);