]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Add string/memory function tests in RTM region
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 23 Feb 2021 14:33:10 +0000 (06:33 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 27 Jan 2022 19:33:05 +0000 (11:33 -0800)
commitc42821ec053da5d42868dd49f91f335bc3a331f5
tree4b235c6f8c786dc1d3e4d0b0a87f042e325b6cf3
parent2a7cef79d5da8a2b3b1c4b368efb81c69c8403b9
x86: Add string/memory function tests in RTM region

At function exit, AVX optimized string/memory functions have VZEROUPPER
which triggers RTM abort.   When such functions are called inside a
transactionally executing RTM region, RTM abort causes severe performance
degradation.  Add tests to verify that string/memory functions won't
cause RTM abort in RTM region.

(cherry picked from commit 4bd660be40967cd69072f69ebc2ad32bfcc1f206)
12 files changed:
sysdeps/x86/Makefile
sysdeps/x86/tst-memchr-rtm.c [new file with mode: 0644]
sysdeps/x86/tst-memcmp-rtm.c [new file with mode: 0644]
sysdeps/x86/tst-memmove-rtm.c [new file with mode: 0644]
sysdeps/x86/tst-memrchr-rtm.c [new file with mode: 0644]
sysdeps/x86/tst-memset-rtm.c [new file with mode: 0644]
sysdeps/x86/tst-strchr-rtm.c [new file with mode: 0644]
sysdeps/x86/tst-strcpy-rtm.c [new file with mode: 0644]
sysdeps/x86/tst-string-rtm.h [new file with mode: 0644]
sysdeps/x86/tst-strlen-rtm.c [new file with mode: 0644]
sysdeps/x86/tst-strncmp-rtm.c [new file with mode: 0644]
sysdeps/x86/tst-strrchr-rtm.c [new file with mode: 0644]