mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Avoids that DRD sporadically reports mysterious false positive conflicting accesses on amd64 like e.g. the following: $ ./vg-in-place --fair-sched=yes --tool=drd --read-var-info=yes --check-stack-var=yes --show-confl-seg=no drd/tests/annotate_smart_pointer 50 50 ==18170== drd, a thread error detector ==18170== Copyright (C) 2006-2011, and GNU GPL'd, by Bart Van Assche. ==18170== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright info ==18170== Command: ./annotate_smart_pointer 50 50 ==18170== ==18170== Conflicting store by thread 1 at 0x7fefff8a0 size 8 ==18170== at 0x400FCE: AnnotateCondVarSignal (unified_annotations.h:32) ==18170== Allocation context: unknown. ==18170== ==18170== Conflicting load by thread 1 at 0x7fefff8a0 size 8 ==18170== at 0x400FDD: AnnotateCondVarSignal (unified_annotations.h:34) ==18170== by 0x401071: U_AnnotateHappensBefore (unified_annotations.h:46) ==18170== by 0x4018DD: smart_ptr<counter>::set(counter*, AtomicInt32*) (annotate_smart_pointer.cpp:239) ==18170== by 0x401778: smart_ptr<counter>::operator=(counter*) (annotate_smart_pointer.cpp:208) ==18170== by 0x401377: main (annotate_smart_pointer.cpp:326) ==18170== Allocation context: unknown. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12332