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

Side by Side Diff: Source/platform/ThreadTimers.cpp

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, 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/platform/Timer.h » ('j') | Source/platform/heap/Handle.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 72
73 m_sharedTimer = sharedTimer; 73 m_sharedTimer = sharedTimer;
74 74
75 if (m_sharedTimer) { 75 if (m_sharedTimer) {
76 m_sharedTimer->setFiredFunction(ThreadTimers::sharedTimerFired); 76 m_sharedTimer->setFiredFunction(ThreadTimers::sharedTimerFired);
77 updateSharedTimer(); 77 updateSharedTimer();
78 } 78 }
79 } 79 }
80 80
81 NO_SANITIZE_ADDRESS
81 void ThreadTimers::updateSharedTimer() 82 void ThreadTimers::updateSharedTimer()
82 { 83 {
83 if (!m_sharedTimer) 84 if (!m_sharedTimer)
84 return; 85 return;
85 86
86 if (m_firingTimers || m_timerHeap.isEmpty()) { 87 if (m_firingTimers || m_timerHeap.isEmpty()) {
87 m_pendingSharedTimerFireTime = 0; 88 m_pendingSharedTimerFireTime = 0;
88 m_sharedTimer->stop(); 89 m_sharedTimer->stop();
89 } else { 90 } else {
90 double nextFireTime = m_timerHeap.first()->m_nextFireTime; 91 double nextFireTime = m_timerHeap.first()->m_nextFireTime;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 || (isMainThread() && Platform::current()->currentThread()->schedule r()->shouldYieldForHighPriorityWork())) 142 || (isMainThread() && Platform::current()->currentThread()->schedule r()->shouldYieldForHighPriorityWork()))
142 break; 143 break;
143 } 144 }
144 145
145 m_firingTimers = false; 146 m_firingTimers = false;
146 147
147 updateSharedTimer(); 148 updateSharedTimer();
148 } 149 }
149 150
150 } // namespace blink 151 } // namespace blink
151
OLDNEW
« no previous file with comments | « no previous file | Source/platform/Timer.h » ('j') | Source/platform/heap/Handle.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698