diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-05-08 15:29:13 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-05-08 15:29:13 +0200 |
commit | b2f601ba9ac02bf069fd6d8aa925ed15445fd02b (patch) | |
tree | c59fc43d7a4652fc3214a7891377289b0c347d81 /ChangeLog | |
parent | 7621676f7a5130c030f7fff1cab72dbf2993b837 (diff) | |
download | glibc-b2f601ba9ac02bf069fd6d8aa925ed15445fd02b.tar.gz glibc-b2f601ba9ac02bf069fd6d8aa925ed15445fd02b.tar.xz glibc-b2f601ba9ac02bf069fd6d8aa925ed15445fd02b.zip |
malloc/tst-mallocfork2: Use process-shared barriers
This synchronization method has a lower overhead and makes it more likely that the signal arrives during one of the critical functions. Also test for fork deadlocks explicitly. Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index a32ff632fa..8514b39661 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,23 @@ +2019-05-08 Florian Weimer <fweimer@redhat.com> + + malloc/tst-mallocfork2: Use process-shared barriers. + * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>. + (signal_count, sigusr1_sender_pid): Remove. + (iterations): Define constant. + (shared): New variable. + (sigusr1_received): Update comment. + (sigusr1_handler): Do not send SIGSTOP to the sender process. + (signal_sender): Optional use barriers to avoid sending signals + during irrelevant times. + (do_it): Initialize variable shared. Use xfork for error + checking. Launch multiple SIGUSR1-sending subprocesses. Limit + the iteration count, independent of signal delivery. Check for + deadlocks in fork. Introduce barriers for reducing signal + traffic. Do not send SIGCONT to the SIGUSR1-sending processes; + replaced by the barriers. Count signals during fork/free/malloc + and report them. + * malloc/Makefile (tst-mallocfork): Link with libpthread. + 2019-05-07 Joseph Myers <joseph@codesourcery.com> * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel |