Skip to content

Commit

Permalink
Fix data race in test_thread_6 (#152)
Browse files Browse the repository at this point in the history
thread_thread_6_mutatee.c

- Use proper barrier instead of volatile+sleep to synchronize threads before attaching mutator
- General code cleanup and extra logging

thread_thread_6.C

- Use threadsafe unordered_map to map BPatchIDs to tids
- Use dprintf and make it threadsafe
- Remove unused stackwalking
- Refactor mutatorTest into separate functions and correctly handle errors at each step
- Remove unused variables
  • Loading branch information
hainest committed Jul 24, 2020
1 parent e743208 commit cd0d83d
Show file tree
Hide file tree
Showing 4 changed files with 387 additions and 427 deletions.

0 comments on commit cd0d83d

Please sign in to comment.