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

Unified Diff: Source/platform/Timer.cpp

Issue 1148943003: Oilpan: more lazy sweep ASan exemptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« Source/platform/Timer.h ('K') | « Source/platform/Timer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/Timer.cpp
diff --git a/Source/platform/Timer.cpp b/Source/platform/Timer.cpp
index 4d03435531e54270dc7453ec9db995db22beef5e..b5eeff8956085d742292c5748fd79f84f7957baa 100644
--- a/Source/platform/Timer.cpp
+++ b/Source/platform/Timer.cpp
@@ -127,6 +127,7 @@ public:
TimerBase* operator->() const { return *m_pointer; }
private:
+ NO_LAZY_SWEEP_SANITIZE_ADDRESS
void checkConsistency(ptrdiff_t offset = 0) const
{
ASSERT(m_pointer >= threadGlobalTimerHeap().data());
@@ -237,6 +238,7 @@ double TimerBase::nextFireInterval() const
return m_nextFireTime - current;
}
+NO_LAZY_SWEEP_SANITIZE_ADDRESS
inline void TimerBase::checkHeapIndex() const
{
ASSERT(timerHeap() == threadGlobalTimerHeap());
@@ -263,6 +265,7 @@ void TimerBase::heapDecreaseKey()
checkHeapIndex();
}
+NO_LAZY_SWEEP_SANITIZE_ADDRESS
inline void TimerBase::heapDelete()
{
ASSERT(m_nextFireTime == 0);
@@ -271,6 +274,7 @@ inline void TimerBase::heapDelete()
m_heapIndex = -1;
}
+NO_LAZY_SWEEP_SANITIZE_ADDRESS
void TimerBase::heapDeleteMin()
{
ASSERT(m_nextFireTime == 0);
@@ -305,6 +309,7 @@ inline void TimerBase::heapPop()
m_nextFireTime = fireTime;
}
+NO_LAZY_SWEEP_SANITIZE_ADDRESS
void TimerBase::heapPopMin()
{
ASSERT(this == timerHeap().first());
@@ -368,6 +373,7 @@ void TimerBase::updateHeapIfNeeded(double oldTime)
ASSERT(!inHeap() || hasValidHeapPosition());
}
+NO_LAZY_SWEEP_SANITIZE_ADDRESS
void TimerBase::setNextFireTime(double newUnalignedTime)
{
ASSERT(m_thread == currentThread());
« Source/platform/Timer.h ('K') | « Source/platform/Timer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698