/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// // When running with ThreadSanitizer, we need to explicitly set some // options specific to our codebase to prevent errors during runtime. // To override these, set the TSAN_OPTIONS environment variable. // // Currently, these are: // // abort_on_error=1 - Causes TSan to abort instead of using exit(). // halt_on_error=1 - Causes TSan to stop on the first race detected. // // report_signal_unsafe=0 - Required to avoid TSan deadlocks when // receiving external signals (e.g. SIGINT manually on console). // // allocator_may_return_null=1 - Tell TSan to return NULL when an allocation // fails instead of aborting the program. This allows us to handle failing // allocations the same way we would handle them with a regular allocator and // also uncovers potential bugs that might occur in these situations. // extern"C"constchar* __tsan_default_options() { return"halt_on_error=1:abort_on_error=1:report_signal_unsafe=0" ":allocator_may_return_null=1";
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.