Home
last modified time | relevance | path

Searched refs:InternalDieCallbacks (Results 1 – 2 of 2) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_termination.cc21 static DieCallbackType InternalDieCallbacks[kMaxNumOfInternalDieCallbacks]; variable
25 if (InternalDieCallbacks[i] == nullptr) { in AddDieCallback()
26 InternalDieCallbacks[i] = callback; in AddDieCallback()
35 if (InternalDieCallbacks[i] == callback) { in RemoveDieCallback()
36 internal_memmove(&InternalDieCallbacks[i], &InternalDieCallbacks[i + 1], in RemoveDieCallback()
37 sizeof(InternalDieCallbacks[0]) * in RemoveDieCallback()
39 InternalDieCallbacks[kMaxNumOfInternalDieCallbacks - 1] = nullptr; in RemoveDieCallback()
55 if (InternalDieCallbacks[i]) in Die()
56 InternalDieCallbacks[i](); in Die()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_termination.cpp20 static DieCallbackType InternalDieCallbacks[kMaxNumOfInternalDieCallbacks]; variable
24 if (InternalDieCallbacks[i] == nullptr) { in AddDieCallback()
25 InternalDieCallbacks[i] = callback; in AddDieCallback()
34 if (InternalDieCallbacks[i] == callback) { in RemoveDieCallback()
35 internal_memmove(&InternalDieCallbacks[i], &InternalDieCallbacks[i + 1], in RemoveDieCallback()
36 sizeof(InternalDieCallbacks[0]) * in RemoveDieCallback()
38 InternalDieCallbacks[kMaxNumOfInternalDieCallbacks - 1] = nullptr; in RemoveDieCallback()
54 if (InternalDieCallbacks[i]) in Die()
55 InternalDieCallbacks[i](); in Die()