aboutsummaryrefslogtreecommitdiff
path: root/malloc/alloc_buffer_alloc_array.c
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2024-06-14 13:01:58 -0500
committerSunil K Pandey <sunil.k.pandey@intel.com>2025-04-14 08:52:17 -0700
commit38a7632f2d1ec86445904b356c54129591e8519b (patch)
tree49bab92ffee341aaa2ed8dab1b41b2d0497203e6 /malloc/alloc_buffer_alloc_array.c
parentcc59fa5dbc4db7c6d1fb792c55a5d83c54ee72bf (diff)
downloadglibc-38a7632f2d1ec86445904b356c54129591e8519b.tar.xz
glibc-38a7632f2d1ec86445904b356c54129591e8519b.zip
x86: Fix value for `x86_memset_non_temporal_threshold` when it is undesirable
When we don't want to use non-temporal stores for memset, we set `x86_memset_non_temporal_threshold` to SIZE_MAX. The current code, however, we using `maximum_non_temporal_threshold` as the upper bound which is `SIZE_MAX >> 4` so we ended up with a value of `0`. Fix is to just use `SIZE_MAX` as the upper bound for when setting the tunable. Tested-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: H.J. Lu <hjl.tools@gmail.com> (cherry picked from commit 5b54a33435e5533653a9956728f2de9d16a3b4ee)
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions