浏览代码

remove volatile qualification from category pointers in __locale_struct

commit 63c188ec42e76ff768e81f6b65b11c68fc43351e missed making this
change when switching from atomics to locking for modification of the
global locale, leaving access to locale structures unnecessarily
burdened with the restrictions of volatile.

the volatile qualification was originally added in commit
56fbaa3bbe73f12af2bfbbcf2adb196e6f9fe264.
Rich Felker 6 年之前
父节点
当前提交
6753fb68b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/internal/libc.h

+ 1 - 1
src/internal/libc.h

@@ -8,7 +8,7 @@
 struct __locale_map;
 
 struct __locale_struct {
-	const struct __locale_map *volatile cat[6];
+	const struct __locale_map *cat[6];
 };
 
 struct tls_module {