#include "sanitizer_common/sanitizer_placement_new.h"
#include "tsan_sync.h"
#include "tsan_rtl.h"
#include "tsan_mman.h"
namespace __tsan {
void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s);
SyncVar::SyncVar() : … { … }
void SyncVar::Init(ThreadState *thr, uptr pc, uptr addr, bool save_stack) { … }
void SyncVar::Reset() { … }
MetaMap::MetaMap()
: … { … }
void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { … }
uptr MetaMap::FreeBlock(Processor *proc, uptr p, bool reset) { … }
bool MetaMap::FreeRange(Processor *proc, uptr p, uptr sz, bool reset) { … }
void MetaMap::ResetRange(Processor *proc, uptr p, uptr sz, bool reset) { … }
void MetaMap::ResetClocks() { … }
MBlock* MetaMap::GetBlock(uptr p) { … }
SyncVar *MetaMap::GetSync(ThreadState *thr, uptr pc, uptr addr, bool create,
bool save_stack) { … }
void MetaMap::MoveMemory(uptr src, uptr dst, uptr sz) { … }
void MetaMap::OnProcIdle(Processor *proc) { … }
MetaMap::MemoryStats MetaMap::GetMemoryStats() const { … }
}