forked from OSchip/llvm-project
tsan: ensure than func entry/exit are inlined
llvm-svn: 168506
This commit is contained in:
parent
decc03efe8
commit
db584aded7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue