freebsd-dev/contrib/compiler-rt/lib/tsan/rtl/tsan_ignoreset.h
Dimitry Andric f4341a5a66 Update compiler-rt to trunk r224034. This brings a number of new
builtins, and also the various sanitizers.  Support for these will be
added in a later commit.
2015-01-08 19:47:10 +00:00

39 lines
930 B
C++

//===-- tsan_ignoreset.h ----------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file is a part of ThreadSanitizer (TSan), a race detector.
//
// IgnoreSet holds a set of stack traces where ignores were enabled.
//===----------------------------------------------------------------------===//
#ifndef TSAN_IGNORESET_H
#define TSAN_IGNORESET_H
#include "tsan_defs.h"
namespace __tsan {
class IgnoreSet {
public:
static const uptr kMaxSize = 16;
IgnoreSet();
void Add(u32 stack_id);
void Reset();
uptr Size() const;
u32 At(uptr i) const;
private:
uptr size_;
u32 stacks_[kMaxSize];
};
} // namespace __tsan
#endif // TSAN_IGNORESET_H