Clang does not like classes with virtual functions but w/o virtual dtor.
Go does not like libstdc++ (operator delete).
llvm-svn: 177267
name[0] = '\0';
}
-ThreadContextBase::~ThreadContextBase() {}
+#ifndef SANITIZER_GO
+ThreadContextBase::~ThreadContextBase() {
+ CHECK(0);
+}
+#endif
void ThreadContextBase::SetName(const char *new_name) {
name[0] = '\0';
class ThreadContextBase {
public:
explicit ThreadContextBase(u32 tid);
+#ifndef SANITIZER_GO // Go does not have libstdc++
+ virtual
+#endif
~ThreadContextBase();
const u32 tid; // Thread ID. Main thread should have tid = 0.
class ThreadContext : public ThreadContextBase {
public:
explicit ThreadContext(int tid);
+ ~ThreadContext();
ThreadState *thr;
#ifdef TSAN_GO
StackTrace creation_stack;
, dead_info() {
}
+#ifndef TSAN_GO
+ThreadContext::~ThreadContext() {
+}
+#endif
+
void ThreadContext::OnDead() {
sync.Reset();
}