Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 2026 13:37:06 +0000
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 00e880819cc5 - stable/14 - libc locale/localeconv.c: use release semantic when clearing locale_changed
Message-ID:  <6a578d02.3750c.1981361d@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=00e880819cc5b8249222792ec82c45444a50eb2d

commit 00e880819cc5b8249222792ec82c45444a50eb2d
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-07-05 02:50:27 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-07-15 13:36:50 +0000

    libc locale/localeconv.c: use release semantic when clearing locale_changed
    
    PR:     296410
    
    (cherry picked from commit 4efbcf36a0d49ab142023a767871532f515f1381)
---
 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 018d650741f8..497c6f43992b 100644
--- a/lib/libc/locale/localeconv.c
+++ b/lib/libc/locale/localeconv.c
@@ -91,7 +91,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) {
@@ -104,7 +104,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;


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a578d02.3750c.1981361d>