git: 4efbcf36a0d4 - main - libc locale/localeconv.c: use release semantic when clearing locale_changed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 05 Jul 2026 03:19:08 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=4efbcf36a0d49ab142023a767871532f515f1381
commit 4efbcf36a0d49ab142023a767871532f515f1381
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-07-05 02:50:27 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-07-05 03:18:50 +0000
libc locale/localeconv.c: use release semantic when clearing locale_changed
PR: 296410
Submitted by: Tomas Vondra <tomas@vondra.me>
MFC after: 1 week
---
lib/libc/locale/localeconv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libc/locale/localeconv.c b/lib/libc/locale/localeconv.c
index 2cd629e8210d..3efd95fc5452 100644
--- a/lib/libc/locale/localeconv.c
+++ b/lib/libc/locale/localeconv.c
@@ -88,7 +88,7 @@ localeconv_l(locale_t loc)
M_ASSIGN_CHAR(int_n_sep_by_space);
M_ASSIGN_CHAR(int_p_sign_posn);
M_ASSIGN_CHAR(int_n_sign_posn);
- atomic_store_int(&loc->monetary_locale_changed, 0);
+ atomic_store_rel_int(&loc->monetary_locale_changed, 0);
}
if (atomic_load_acq_int(&loc->numeric_locale_changed) != 0) {
@@ -101,7 +101,7 @@ localeconv_l(locale_t loc)
N_ASSIGN_STR(decimal_point);
N_ASSIGN_STR(thousands_sep);
N_ASSIGN_STR(grouping);
- atomic_store_int(&loc->numeric_locale_changed, 0);
+ atomic_store_rel_int(&loc->numeric_locale_changed, 0);
}
return ret;