Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2096)

Unified Diff: base/dynamic_annotations.cc

Issue 1992005: Update dynamic annotations and move them to base/third_party (Closed)
Patch Set: rebased Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/dynamic_annotations.h ('k') | base/lazy_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/dynamic_annotations.cc
diff --git a/base/dynamic_annotations.cc b/base/dynamic_annotations.cc
deleted file mode 100644
index b1f4e19ac5baf876ca57e5f7056a15770a4402eb..0000000000000000000000000000000000000000
--- a/base/dynamic_annotations.cc
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/dynamic_annotations.h"
-
-#ifndef NVALGRIND
-// Each function is empty and called (via a macro) only in debug mode.
-// The arguments are captured by dynamic tools at runtime.
-
-extern "C" void AnnotateRWLockCreate(const char *file, int line,
- const volatile void *lock) {}
-extern "C" void AnnotateRWLockDestroy(const char *file, int line,
- const volatile void *lock) {}
-extern "C" void AnnotateRWLockAcquired(const char *file, int line,
- const volatile void *lock, long is_w) {}
-extern "C" void AnnotateRWLockReleased(const char *file, int line,
- const volatile void *lock, long is_w) {}
-extern "C" void AnnotateCondVarWait(const char *file, int line,
- const volatile void *cv,
- const volatile void *lock) {}
-extern "C" void AnnotateCondVarSignal(const char *file, int line,
- const volatile void *cv) {}
-extern "C" void AnnotateCondVarSignalAll(const char *file, int line,
- const volatile void *cv) {}
-extern "C" void AnnotatePublishMemoryRange(const char *file, int line,
- const volatile void *address,
- long size) {}
-extern "C" void AnnotatePCQCreate(const char *file, int line,
- const volatile void *pcq) {}
-extern "C" void AnnotatePCQDestroy(const char *file, int line,
- const volatile void *pcq) {}
-extern "C" void AnnotatePCQPut(const char *file, int line,
- const volatile void *pcq) {}
-extern "C" void AnnotatePCQGet(const char *file, int line,
- const volatile void *pcq) {}
-extern "C" void AnnotateNewMemory(const char *file, int line,
- const volatile void *mem,
- long size) {}
-extern "C" void AnnotateExpectRace(const char *file, int line,
- const volatile void *mem,
- const char *description) {}
-extern "C" void AnnotateBenignRace(const char *file, int line,
- const volatile void *mem,
- const char *description) {}
-extern "C" void AnnotateMutexIsUsedAsCondVar(const char *file, int line,
- const volatile void *mu) {}
-extern "C" void AnnotateTraceMemory(const char *file, int line,
- const volatile void *arg) {}
-extern "C" void AnnotateThreadName(const char *file, int line,
- const char *name) {}
-extern "C" void AnnotateIgnoreReadsBegin(const char *file, int line) {}
-extern "C" void AnnotateIgnoreReadsEnd(const char *file, int line) {}
-extern "C" void AnnotateIgnoreWritesBegin(const char *file, int line) {}
-extern "C" void AnnotateIgnoreWritesEnd(const char *file, int line) {}
-extern "C" void AnnotateNoOp(const char *file, int line,
- const volatile void *arg) {}
-#endif // NVALGRIND
-
-// When running under valgrind, a non-zero value will be returned.
-extern "C" int RunningOnValgrind() {
-#if defined(NVALGRIND) || !defined(RUNNING_ON_VALGRIND)
- return 0;
-#else
- return RUNNING_ON_VALGRIND;
-#endif
-}
« no previous file with comments | « base/dynamic_annotations.h ('k') | base/lazy_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698