// Used by libdebuggerd_handler to switch allocators during a crash dump, in // case the linker heap is corrupted. Do not use this function. extern"C"bool __linker_enable_fallback_allocator() {
pid_t expected = 0; return fallback_tid.compare_exchange_strong(expected, gettid());
}
extern"C"void __linker_disable_fallback_allocator() {
pid_t previous = fallback_tid.exchange(0); if (previous == 0) {
async_safe_fatal("attempted to disable unused fallback allocator");
} elseif (previous != gettid()) {
async_safe_fatal("attempted to disable fallback allocator in use by another thread (%d)",
previous);
}
}
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 und die Messung sind noch experimentell.