Repository navigation
Commit eb23db2
committed
gh-158893: Make os.strerror() thread-safe
Make os.strerror() thread-safe: use the reentrant strerror_r()
function if available.
* The configure script now checks if strerror_r() is supported.
* Add a stress test to test_free_threading.test_os (new module).
* Add a comment on decode_current_locale() assertion which fails if
the input string is mutated.
* Add an assertion to _Py_DecodeLocale() to detect if the input
string was mutated during the function call.1 parent ea0ee92 commit eb23db2
7 files changed
Lines changed: 166 additions & 1 deletion
File tree
- Lib/test/test_free_threading
- Misc/NEWS.d/next/Library
- Modules
- Python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13923 | 13923 | | |
13924 | 13924 | | |
13925 | 13925 | | |
| 13926 | + | |
| 13927 | + | |
| 13928 | + | |
| 13929 | + | |
| 13930 | + | |
| 13931 | + | |
| 13932 | + | |
| 13933 | + | |
| 13934 | + | |
| 13935 | + | |
| 13936 | + | |
| 13937 | + | |
| 13938 | + | |
| 13939 | + | |
| 13940 | + | |
| 13941 | + | |
| 13942 | + | |
| 13943 | + | |
| 13944 | + | |
| 13945 | + | |
| 13946 | + | |
| 13947 | + | |
| 13948 | + | |
| 13949 | + | |
| 13950 | + | |
| 13951 | + | |
| 13952 | + | |
| 13953 | + | |
| 13954 | + | |
| 13955 | + | |
| 13956 | + | |
| 13957 | + | |
| 13958 | + | |
| 13959 | + | |
| 13960 | + | |
| 13961 | + | |
| 13962 | + | |
| 13963 | + | |
| 13964 | + | |
| 13965 | + | |
| 13966 | + | |
| 13967 | + | |
| 13968 | + | |
| 13969 | + | |
| 13970 | + | |
| 13971 | + | |
| 13972 | + | |
| 13973 | + | |
| 13974 | + | |
| 13975 | + | |
| 13976 | + | |
| 13977 | + | |
| 13978 | + | |
| 13979 | + | |
| 13980 | + | |
| 13981 | + | |
| 13982 | + | |
| 13983 | + | |
| 13984 | + | |
| 13985 | + | |
| 13986 | + | |
| 13987 | + | |
| 13988 | + | |
| 13989 | + | |
13926 | 13990 | | |
13927 | 13991 | | |
13928 | 13992 | | |
13929 | 13993 | | |
13930 | 13994 | | |
13931 | 13995 | | |
13932 | 13996 | | |
| 13997 | + | |
13933 | 13998 | | |
13934 | 13999 | | |
13935 | 14000 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
542 | 547 | | |
| 548 | + | |
543 | 549 | | |
544 | 550 | | |
545 | 551 | | |
| |||
694 | 700 | | |
695 | 701 | | |
696 | 702 | | |
| 703 | + | |
697 | 704 | | |
698 | 705 | | |
699 | 706 | | |
| |||
719 | 726 | | |
720 | 727 | | |
721 | 728 | | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
722 | 734 | | |
723 | 735 | | |
724 | 736 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5559 | 5559 | | |
5560 | 5560 | | |
5561 | 5561 | | |
| 5562 | + | |
| 5563 | + | |
| 5564 | + | |
5562 | 5565 | | |
5563 | 5566 | | |
5564 | 5567 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2214 | 2214 | | |
2215 | 2215 | | |
2216 | 2216 | | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
2217 | 2220 | | |
2218 | 2221 | | |
2219 | 2222 | | |
| |||
0 commit comments