mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Update mutex type upon mutex reinitialization such that DRD does not trigger an assertion failure when a reinitialized mutex is used.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9851
This commit is contained in:
parent
a3dfa6672b
commit
5a4e0404ce
@ -193,6 +193,7 @@ DRD_(mutex_init)(const Addr mutex, const MutexT mutex_type)
|
||||
VG_(get_IP)(vg_tid),
|
||||
"Mutex reinitialization",
|
||||
&MEI);
|
||||
p->mutex_type = mutex_type;
|
||||
return p;
|
||||
}
|
||||
p = DRD_(mutex_get_or_allocate)(mutex, mutex_type);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user