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

Side by Side Diff: third_party/WebKit/Source/platform/Timer.cpp

Issue 2390553002: Remove NO_LAZY_SWEEP_SANITIZE_ADDRESS (Closed)
Patch Set: temp Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 m_weakPtrFactory.revokeAll(); 109 m_weakPtrFactory.revokeAll();
110 110
111 double delayMs = 1000.0 * (newTime - now); 111 double delayMs = 1000.0 * (newTime - now);
112 timerTaskRunner()->postDelayedTask( 112 timerTaskRunner()->postDelayedTask(
113 m_location, 113 m_location,
114 base::Bind(&TimerBase::runInternal, m_weakPtrFactory.createWeakPtr()), 114 base::Bind(&TimerBase::runInternal, m_weakPtrFactory.createWeakPtr()),
115 delayMs); 115 delayMs);
116 } 116 }
117 } 117 }
118 118
119 NO_LAZY_SWEEP_SANITIZE_ADDRESS 119 NO_SANITIZE_ADDRESS
120 void TimerBase::runInternal() { 120 void TimerBase::runInternal() {
121 if (!canFire()) 121 if (!canFire())
122 return; 122 return;
123 123
124 m_weakPtrFactory.revokeAll(); 124 m_weakPtrFactory.revokeAll();
125 125
126 TRACE_EVENT0("blink", "TimerBase::run"); 126 TRACE_EVENT0("blink", "TimerBase::run");
127 #if DCHECK_IS_ON() 127 #if DCHECK_IS_ON()
128 DCHECK_EQ(m_thread, currentThread()) 128 DCHECK_EQ(m_thread, currentThread())
129 << "Timer posted by " << m_location.function_name() << " " 129 << "Timer posted by " << m_location.function_name() << " "
(...skipping 21 matching lines...) Expand all
151 const TimerBase* b) const { 151 const TimerBase* b) const {
152 return a->m_nextFireTime < b->m_nextFireTime; 152 return a->m_nextFireTime < b->m_nextFireTime;
153 } 153 }
154 154
155 // static 155 // static
156 double TimerBase::timerMonotonicallyIncreasingTime() const { 156 double TimerBase::timerMonotonicallyIncreasingTime() const {
157 return timerTaskRunner()->monotonicallyIncreasingVirtualTimeSeconds(); 157 return timerTaskRunner()->monotonicallyIncreasingVirtualTimeSeconds();
158 } 158 }
159 159
160 } // namespace blink 160 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/Timer.h ('k') | third_party/WebKit/Source/platform/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698