19 Commits

Author SHA1 Message Date
Nicholas Nethercote
07045477ca Merge the DARWIN branch onto the trunk.
I tried using 'svn merge' to do the merge but it did a terrible job and
there were bazillions of conflicts.  So instead I just took the diff between
the branch and trunk  at r10155, applied the diff to the trunk, 'svn add'ed
the added files (no files needed to be 'svn remove'd) and committed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10156
2009-05-28 01:53:07 +00:00
Nicholas Nethercote
a3dfa6672b Factor out the name of the libpthread library. Also fix a minor stack trace
bogon.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9832
2009-05-11 08:01:09 +00:00
Bart Van Assche
5eccd4ef74 Fixed #189763.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9578
2009-04-22 18:59:50 +00:00
Bart Van Assche
219e77b9bc - Reindented code such that it uses three spaces for indentation instead
of two. The indentation of the DRD source code is now consistent with
  the other Valgrind source files.
- Added emacs mode line with indentation settings.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9496
2009-03-26 19:07:15 +00:00
Bart Van Assche
740d45422c Made DRD_(mutex_type) ignore mutex attribute flags.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9399
2009-03-13 17:32:52 +00:00
Bart Van Assche
cc744ab1c6 Added comment block that explains why the creator thread waits until the creator thread has copied the vector clock of the creator thread.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9387
2009-03-12 18:39:31 +00:00
Bart Van Assche
aaef6d016e Changes:
- pthread_barrier_wait() intercept now passes the information to the DRD
  tool whether or not this function returned
  PTHREAD_BARRIER_SERIAL_THREAD. This information is now displayed when
  the command-line option --trace-barrier=yes has been specified.
- Changed the cleanup functions for client objects that are called just
  before a thread stops into callback functions.
- Added DRD_(clientobj_delete_thread)().
- Removed DRD_(clientobj_resetiter)(void) and DRD_(clientobj_next)().
- Added test for race conditions between pthread_barrier_wait() and
  pthread_barrier_destroy() calls. An error message is now printed if
  this condition has been detected.
- Bug fix: pthread_barrier_delete() calls on barriers being waited upon
  are now reported.
- Removed DRD_() wrapper from around the name of some static variables and
  functions.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9211
2009-02-21 15:27:04 +00:00
Bart Van Assche
b71a8e5966 - Updated copyright statements.
- Improved consistency of source file headers.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9182
2009-02-16 19:43:56 +00:00
Bart Van Assche
2cadc31ad0 Restored the previous method for passing arguments from the creator thread to the created thread, since the new approach made some regression tests fail. It is not yet clear to me why.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9164
2009-02-15 10:40:44 +00:00
Bart Van Assche
0a804bd7c6 - Performance improvement: eliminated busy waiting from thread creation.
- Applied DRD_() prefix to all names of functions that are not
  intercepts of client code.
- Removed superfluous include directive, namely #include <inttypes.h>.
- Removed hack for suppressing false positive reports on stdio / stderr
  because recently a suppression pattern was added for these races.
- Removed unused code and declarations.
- Added more comments.
- Updated copyright statement.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9149
2009-02-14 12:12:57 +00:00
Bart Van Assche
99249d56d6 Renamed vg_thread_wrapper() into DRD_(thread_wrapper)().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9148
2009-02-14 11:54:42 +00:00
Bart Van Assche
0a25936ab6 Replaced test for FILE::_lock by a more direct test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8670
2008-10-13 19:22:35 +00:00
Bart Van Assche
49456aef12 Removed #define _IO_MTSAFE_IO again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8662
2008-10-11 19:25:18 +00:00
Bart Van Assche
4842d4beaf Removed inclusion of <bits/libc-lock.h>.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8661
2008-10-11 19:04:40 +00:00
Bart Van Assche
f09070a08c Suppress race reports triggered by glibc's _IO_flockfile(FILE*) on stdout and stderr.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8658
2008-10-11 18:29:46 +00:00
Bart Van Assche
a581fe1812 Added intercept for pthread_cancel().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8640
2008-09-27 12:40:57 +00:00
Bart Van Assche
10c73ac342 Enabled support for nesting mutexes and condition variables in higher-level synchronization primitives. Changed mutex tracing output slightly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8377
2008-07-07 16:53:07 +00:00
Bart Van Assche
def3aa6461 Made spinlocks work again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8372
2008-07-07 08:10:56 +00:00
Bart Van Assche
6e368a9f37 Renamed exp-drd directory into drd. Moved drd from the experimental tool class to the class of regular tools.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8361
2008-07-04 15:14:35 +00:00