From: Bart Van Assche Date: Sat, 16 May 2009 06:22:46 +0000 (+0000) Subject: Update mutex type upon mutex reinitialization such that DRD does not trigger an asser... X-Git-Tag: svn/VALGRIND_3_5_0~704 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a4e0404ce6d533e29cef19634320edd5d8f8025;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/drd/drd_mutex.c b/drd/drd_mutex.c index 14977f61cb..6ceee8acaa 100644 --- a/drd/drd_mutex.c +++ b/drd/drd_mutex.c @@ -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);