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

Unified Diff: Source/platform/scheduler/CancellableTaskFactory.cpp

Issue 1312843009: Improve CancellableTaskFactory handling and Oilpan usage. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add unwrap() clarification Created 5 years, 3 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 | « Source/platform/scheduler/CancellableTaskFactory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scheduler/CancellableTaskFactory.cpp
diff --git a/Source/platform/scheduler/CancellableTaskFactory.cpp b/Source/platform/scheduler/CancellableTaskFactory.cpp
index abd25c287f5ea82d915151240fceb0324cc9b666..969b16f8c9a65ee4046628fbbd2fb78af07bd17a 100644
--- a/Source/platform/scheduler/CancellableTaskFactory.cpp
+++ b/Source/platform/scheduler/CancellableTaskFactory.cpp
@@ -21,14 +21,9 @@ WebTaskRunner::Task* CancellableTaskFactory::cancelAndCreate()
return new CancellableTask(m_weakPtrFactory.createWeakPtr());
}
-NO_LAZY_SWEEP_SANITIZE_ADDRESS
void CancellableTaskFactory::CancellableTask::run()
{
if (CancellableTaskFactory* taskFactory = m_weakPtr.get()) {
-#if defined(ADDRESS_SANITIZER)
- if (taskFactory->m_unpoisonBeforeUpdate)
- ASAN_UNPOISON_MEMORY_REGION(reinterpret_cast<unsigned char*>(taskFactory), sizeof(CancellableTaskFactory));
-#endif
Closure* closure = taskFactory->m_closure.get();
taskFactory->m_weakPtrFactory.revokeAll();
(*closure)();
« no previous file with comments | « Source/platform/scheduler/CancellableTaskFactory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698