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

Unified Diff: Source/platform/Timer.h

Issue 1120943002: Various ASan exemptions to allow Oilpan pre-sweep poisoning of unmarkeds. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
Index: Source/platform/Timer.h
diff --git a/Source/platform/Timer.h b/Source/platform/Timer.h
index e8015b6d5ca0cc4461b54fde74fad7fd1251f1a4..4f95649946816a1859a11998fd981f285f578b0c 100644
--- a/Source/platform/Timer.h
+++ b/Source/platform/Timer.h
@@ -72,6 +72,7 @@ public:
private:
virtual void fired() = 0;
+ NO_SANITIZE_ADDRESS
virtual double alignedFireTime(double fireTime) const { return fireTime; }
void checkConsistency() const;
@@ -79,6 +80,7 @@ private:
void setNextFireTime(double);
+ NO_SANITIZE_ADDRESS
bool inHeap() const { return m_heapIndex != -1; }
bool hasValidHeapPosition() const;
@@ -92,6 +94,7 @@ private:
void heapPop();
void heapPopMin();
+ NO_SANITIZE_ADDRESS
Vector<TimerBase*>& timerHeap() const { ASSERT(m_cachedThreadGlobalTimerHeap); return *m_cachedThreadGlobalTimerHeap; }
double m_nextFireTime; // 0 if inactive
@@ -154,6 +157,7 @@ private:
TimerFiredFunction m_function;
};
+NO_SANITIZE_ADDRESS
inline bool TimerBase::isActive() const
{
ASSERT(m_thread == currentThread());

Powered by Google App Engine
This is Rietveld 408576698