Module Name: src Committed By: riastradh Date: Fri Apr 8 23:35:52 UTC 2022
Modified Files: src/distrib/sets/lists/debug: mi src/distrib/sets/lists/tests: mi src/etc/mtree: NetBSD.dist.tests src/tests/lib/libc: Makefile Added Files: src/tests/lib/libc/membar: Makefile t_dekker.c t_seqlock.c t_spinlock.c Log Message: membar_ops(3): Add some automatic tests. These tests run two threads for five seconds each to try to trigger races in the event of broken memory barriers. They run only on machines with at least two CPUs; on uniprocessor systems there's no point -- the membars can correctly just be (instruction barrier) no-ops. To generate a diff of this commit: cvs rdiff -u -r1.375 -r1.376 src/distrib/sets/lists/debug/mi cvs rdiff -u -r1.1191 -r1.1192 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.189 -r1.190 src/etc/mtree/NetBSD.dist.tests cvs rdiff -u -r1.50 -r1.51 src/tests/lib/libc/Makefile cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/membar/Makefile \ src/tests/lib/libc/membar/t_dekker.c \ src/tests/lib/libc/membar/t_seqlock.c \ src/tests/lib/libc/membar/t_spinlock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.