[PATCH] D46793: [sanitizer] Intercept __pthread_mutex_lock and __pthread_mutex_unlock
Dmitry Vyukov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 11 23:57:19 PDT 2018
dvyukov added a comment.
Interesting. Who calls these functions? Why? Can we change them to call normal functions instead?
In pthread they are no more than aliases to normal functions, can we do it with aliases too? like we do it for __libc_mutex_lock:
sanitizer_common/sanitizer_common_interceptors.inc-INTERCEPTOR(int, __libc_mutex_lock, void *m) \
sanitizer_common/sanitizer_common_interceptors.inc: ALIAS(WRAPPER_NAME(pthread_mutex_lock));
Repository:
rL LLVM
https://reviews.llvm.org/D46793
More information about the llvm-commits
mailing list