]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Fix incorrect scope of setting `shared_per_thread` [BZ# 30745]
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 11 Aug 2023 00:28:24 +0000 (19:28 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 12 Sep 2023 03:47:08 +0000 (22:47 -0500)
commit1a200935e135e8576556092e328155d150ce97de
tree656ec69d029606d0b3c22654ec945d5d23fde359
parent6c8475a3f745afd08721d3cf33c25a175aee6d0a
x86: Fix incorrect scope of setting `shared_per_thread` [BZ# 30745]

The:

```
    if (shared_per_thread > 0 && threads > 0)
      shared_per_thread /= threads;
```

Code was accidentally moved to inside the else scope.  This doesn't
match how it was previously (before af992e7abd).

This patch fixes that by putting the division after the `else` block.

(cherry picked from commit 084fb31bc2c5f95ae0b9e6df4d3cf0ff43471ede)
sysdeps/x86/dl-cacheinfo.h