tsan: ensure than func entry/exit are inlined

llvm-svn: 168506
This commit is contained in:
Dmitry Vyukov 2012-11-23 07:14:11 +00:00
parent decc03efe8
commit db584aded7
1 changed files with 2 additions and 0 deletions

View File

@ -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);