tsan: fix argument passing in Go interface

Go calling convention does not support bools (it probably works, but uptrs are safer)

llvm-svn: 210365
This commit is contained in:
Dmitry Vyukov 2014-06-06 18:53:52 +00:00
parent fcf31a73d1
commit 9ff85e9674
1 changed files with 3 additions and 3 deletions

View File

@ -191,17 +191,17 @@ void __tsan_finalizer_goroutine(ThreadState *thr) {
AcquireGlobal(thr, 0);
}
void __tsan_mutex_before_lock(ThreadState *thr, uptr addr, bool write) {
void __tsan_mutex_before_lock(ThreadState *thr, uptr addr, uptr write) {
}
void __tsan_mutex_after_lock(ThreadState *thr, uptr addr, bool write) {
void __tsan_mutex_after_lock(ThreadState *thr, uptr addr, uptr write) {
if (write)
MutexLock(thr, 0, addr);
else
MutexReadLock(thr, 0, addr);
}
void __tsan_mutex_before_unlock(ThreadState *thr, uptr addr, bool write) {
void __tsan_mutex_before_unlock(ThreadState *thr, uptr addr, uptr write) {
if (write)
MutexUnlock(thr, 0, addr);
else