9 Commits

Author SHA1 Message Date
Bart Van Assche
4bc9d8c635 Added reference counting to segments. Synchronization objects (mutex, semaphore, barrier, rwlock) now keep a pointer to a segment instead of copying a vector clock for modeling causal relationships.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7727
2008-03-17 18:32:39 +00:00
Bart Van Assche
0c4e5b8ce4 Bug fix: sometimes an assert was triggered if pthread_barrier_destroy() was called after the last pthread_barrier_wait() finished and before the post-pthread_barrier_wait() client request finished.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7654
2008-03-12 17:23:07 +00:00
Bart Van Assche
bd1e6d9da1 Added support for OpenMP barriers -- if libgomp.so has been built with debug information. More in general, added support for nested synchronization constructs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7642
2008-03-11 20:10:21 +00:00
Bart Van Assche
8164647b5e Fixed false positives reported after the second last pthread_barrier_wait() call in a thread.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7607
2008-03-09 08:48:01 +00:00
Bart Van Assche
1c0e43670f Added support for POSIX reader-writer locks. Modified exp-drd/tests/filter-stderr such that i386 and AMD64 now generate the same output. Removed *.stderr.exp2 files. Added section that explains differences between LinuxThreads and NPTL to exp-drd/docs/README.txt. Made error message about LinuxThreads more clear. Made error messages more uniform.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7531
2008-03-02 17:43:18 +00:00
Bart Van Assche
f9bbc5bf9a Added command-line option --trace-clientobj. Renamed drd_clientobj* functions into clientobj*. Moved some code from drd_main.c into the drd_mutex.c/drd_cond.c/drd_semaphore.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7522
2008-03-01 13:44:24 +00:00
Bart Van Assche
ec91ad81ff Eliminated upper bounds on the number of condition variables, semaphores and barriers. Added command-line option --trace-semaphore.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7508
2008-02-29 17:27:03 +00:00
Bart Van Assche
035f1574d5 Bug fix: "mutex reinitialization" error message is no longer printed for the tc09_bad_unlock test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7506
2008-02-29 11:00:17 +00:00
Bart Van Assche
10e97581bb Eliminated the upper bound on the number of client-side mutexes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7500
2008-02-28 19:08:04 +00:00