]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Use 64MB as nt-store threshold if no cacheinfo [BZ #30429]
authorNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 9 May 2023 03:10:20 +0000 (22:10 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Sun, 28 May 2023 02:32:57 +0000 (21:32 -0500)
commited2f9dc9420c4c61436328778a70459d0a35556a
tree9261119bdc4cb605473408694e7e80e4bf607b70
parent9ffdcf5b79acacffc35506812ca8d99ea1dde618
x86: Use 64MB as nt-store threshold if no cacheinfo [BZ #30429]

If `non_temporal_threshold` is below `minimum_non_temporal_threshold`,
it almost certainly means we failed to read the systems cache info.

In this case, rather than defaulting the minimum correct value, we
should default to a value that gets at least reasonable
performance. 64MB is chosen conservatively to be at the very high
end. This should never cause non-temporal stores when, if we had read
cache info, we wouldn't have otherwise.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/x86/dl-cacheinfo.h