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

Side by Side Diff: syzygy/agent/asan/runtime.h

Issue 2576003002: Add the ability to defer the initialization of the SyzyAsan crash reporter. (Closed)
Patch Set: Add an entry point to reinitialize the crash reporter. Created 4 years 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 // Copyright 2012 Google Inc. All Rights Reserved. 1 // Copyright 2012 Google Inc. All Rights Reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 // Enables the deferred free thread. 188 // Enables the deferred free thread.
189 void EnableDeferredFreeThread(); 189 void EnableDeferredFreeThread();
190 190
191 // Disables the deferred free thread. 191 // Disables the deferred free thread.
192 void DisableDeferredFreeThread(); 192 void DisableDeferredFreeThread();
193 193
194 // @returns the list of enabled features. 194 // @returns the list of enabled features.
195 AsanFeatureSet GetEnabledFeatureSet(); 195 AsanFeatureSet GetEnabledFeatureSet();
196 196
197 // Initialize the crash reporter used by the runtime. Re-initialize it if it
198 // has already been initialized.
199 void InitializeCrashReporter();
200
197 protected: 201 protected:
198 // Propagate the values of the flags to the target modules. 202 // Propagate the values of the flags to the target modules.
199 void PropagateParams(); 203 void PropagateParams();
200 204
201 // @returns the space required to write the provided corrupt heap info. 205 // @returns the space required to write the provided corrupt heap info.
202 // @param corrupt_ranges The corrupt range info. 206 // @param corrupt_ranges The corrupt range info.
203 size_t CalculateCorruptHeapInfoSize( 207 size_t CalculateCorruptHeapInfoSize(
204 const HeapChecker::CorruptRangesVector& corrupt_ranges); 208 const HeapChecker::CorruptRangesVector& corrupt_ranges);
205 209
206 // Writes corrupt heap information to the provided buffer. This will write 210 // Writes corrupt heap information to the provided buffer. This will write
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // is available. 331 // is available.
328 std::unique_ptr<ReporterInterface> crash_reporter_; 332 std::unique_ptr<ReporterInterface> crash_reporter_;
329 333
330 DISALLOW_COPY_AND_ASSIGN(AsanRuntime); 334 DISALLOW_COPY_AND_ASSIGN(AsanRuntime);
331 }; 335 };
332 336
333 } // namespace asan 337 } // namespace asan
334 } // namespace agent 338 } // namespace agent
335 339
336 #endif // SYZYGY_AGENT_ASAN_RUNTIME_H_ 340 #endif // SYZYGY_AGENT_ASAN_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698