I believe this was fixed in master with commit: commit 4a72d859b4f8d0444eb7f38606d59d7ddc9ea8fa Author: Brian Paul <bri...@vmware.com> Date: Thu Feb 16 12:25:22 2012 -0700
util: add mutex lock in u_debug_memory.c code The linked list of memory allocations was not protected by a mutex. This lead to sporadic failures with multi-threaded apps. Reviewed-by: Jose Fonseca <jfons...@vmware.com> I've crossported to 8.0 branch. In general Mesa is thread safe, but I don't think it has received much testing with multi-threaded apps, so it's likely there are issues. Jose ----- Original Message ----- > Hi, > Is Mesa 8.0 implementation on windows thread safe? > I have some test code that is doing rendering in parallel threads > using debug build of opengl32.dll and it is crashing in debug_free > on list_del operation. > The implementation of u_double_list.h does not seem to be thread > safe, so I believe if concurrent debug_free/debug_malloc happen it > can cause crashes. Is it possible or is there proper locking > somewhere up in the calling stack? > Thanks, > Juraj > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev