Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
0c8dcfc
gh-129069: make list ass_slice and memory_repeat safe
tom-pytel Mar 29, 2025
67c9459
📜🤖 Added by blurb_it.
blurb-it[bot] Mar 29, 2025
e460b5a
include atomic wrappers in pycore_list.h
tom-pytel Mar 29, 2025
fcdb634
provisional fix to compile on windows
tom-pytel Mar 29, 2025
b1e9216
requested changes so far
tom-pytel Apr 1, 2025
944abf0
Merge branch 'main' into fix-issue-129069
tom-pytel Apr 1, 2025
3a9e249
Merge branch 'main' into fix-issue-129069
tom-pytel Apr 4, 2025
0f96d58
remove atomic load and rename
tom-pytel Apr 8, 2025
47f3d81
Merge branch 'main' into fix-issue-129069
tom-pytel Apr 8, 2025
adf2c15
Merge branch 'main' into fix-issue-129069
tom-pytel Apr 14, 2025
b569865
Merge branch 'main' into fix-issue-129069
tom-pytel Apr 23, 2025
87d48ff
Merge branch 'main' into fix-issue-129069
tom-pytel May 18, 2025
26ee081
requested variable name changes
tom-pytel May 18, 2025
ac4e968
use _Py_IS_ALIGNED()
tom-pytel Aug 1, 2025
890186e
Merge branch 'main' into fix-issue-129069
tom-pytel Aug 1, 2025
7c250fa
Py_ssize_t arg -> size_t
tom-pytel Aug 2, 2025
a0dca26
Merge branch 'main' into fix-issue-129069
tom-pytel Aug 2, 2025
80c12d2
add tests and remove suppressions
tom-pytel Aug 2, 2025
f16eb60
Merge branch 'main' into fix-issue-129069
tom-pytel Aug 2, 2025
e36e314
Merge branch 'main' into fix-issue-129069
tom-pytel Aug 15, 2025
f220d83
add list free-threading tsan test to test_list.py
tom-pytel Aug 15, 2025
bed61d9
misc fix test_list.test_free_threading, no tsan req
tom-pytel Aug 15, 2025
656a5a0
fix list tsan test
tom-pytel Aug 27, 2025
d34d11a
change news
tom-pytel Aug 27, 2025
8610e27
Merge branch 'main' into fix-issue-129069
tom-pytel Aug 29, 2025
ce439d7
test build fix
tom-pytel Aug 31, 2025
a16cf5b
control test with original main pyatomic.h
tom-pytel Aug 31, 2025
8ab9d16
fix typo
tom-pytel Aug 31, 2025
8e2d83e
remove capi tests
tom-pytel Aug 31, 2025
1c14be7
restore atomic mem funcs
tom-pytel Aug 31, 2025
9bf93f2
another test
tom-pytel Aug 31, 2025
272fec6
another test
tom-pytel Aug 31, 2025
0721321
final test hopefully to diagnose
tom-pytel Aug 31, 2025
e34fa03
hunch
tom-pytel Aug 31, 2025
a7850be
fingers crossed
tom-pytel Aug 31, 2025
be4f118
misc
tom-pytel Aug 31, 2025
23c1bce
test as #define
tom-pytel Aug 31, 2025
aef4baa
reorder to end of pyatomic.h
tom-pytel Aug 31, 2025
b26b262
revert _Py_IS_ALIGNED() to raw checks
tom-pytel Aug 31, 2025
839f772
revert size_t to Py_ssize_t
tom-pytel Aug 31, 2025
c8fb961
explicitly include string.h for test
tom-pytel Aug 31, 2025
32238cb
double check _Py_IS_ALIGNED()
tom-pytel Aug 31, 2025
08298ee
again
tom-pytel Aug 31, 2025
5d372b7
and again
tom-pytel Aug 31, 2025
a6eb550
uintptr_t?
tom-pytel Aug 31, 2025
e2c5f2e
completely empty functions
tom-pytel Aug 31, 2025
c3a23fb
loop and normal store
tom-pytel Aug 31, 2025
5813655
put back assert
tom-pytel Aug 31, 2025
635d217
_Py_USING_STD and normal store
tom-pytel Aug 31, 2025
088c40e
pyatomic_gcc store atomic
tom-pytel Aug 31, 2025
2063f73
pyatomic_std store atomic
tom-pytel Aug 31, 2025
11b616c
pyatomic_msc store atomic
tom-pytel Aug 31, 2025
191c261
put back assert n
tom-pytel Aug 31, 2025
0784d19
typecase to size_t in assert
tom-pytel Aug 31, 2025
154a132
size assert no work, try other with cast
tom-pytel Aug 31, 2025
a5f4d9e
last test of copy at pyatomic.h level
tom-pytel Aug 31, 2025
73c7cc1
test location dependence
tom-pytel Aug 31, 2025
93b90c7
put back test
tom-pytel Aug 31, 2025
bf15e93
test basic assert
tom-pytel Aug 31, 2025
39bee16
leave assertions commented out
tom-pytel Aug 31, 2025
387232d
Merge branch 'main' into fix-issue-129069
tom-pytel Aug 31, 2025
6f4ef28
test assert(1 == 1) with latest main
tom-pytel Aug 31, 2025
c2de542
remove assert(1 == 1) test, now we know
tom-pytel Aug 31, 2025
e6d3e5c
#include <assert.h>
tom-pytel Aug 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
hunch
  • Loading branch information
tom-pytel committed Aug 31, 2025
commit e34fa034099e10c59f80dd9381f2cff59e22d0cc
50 changes: 0 additions & 50 deletions Include/cpython/pyatomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -548,61 +548,11 @@
// --- _Py_atomic_memcpy / _Py_atomic_memmove ------------

static inline void *
_Py_atomic_memcpy_ptr_store_relaxed(void *dest, void *src, size_t n);

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 551 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

‘_Py_atomic_memcpy_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

static inline void *
_Py_atomic_memmove_ptr_store_relaxed(void *dest, void *src, size_t n);

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Cross build Linux

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

Check warning on line 554 in Include/cpython/pyatomic.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

‘_Py_atomic_memmove_ptr_store_relaxed’ declared ‘static’ but never defined [-Wunused-function]

// static inline void *
// _Py_atomic_memcpy_ptr_store_relaxed(void *dest, void *src, size_t n)
// {
// assert(_Py_IS_ALIGNED(dest, sizeof(void *)));
// assert(_Py_IS_ALIGNED(src, sizeof(void *)));
// assert(n % sizeof(void *) == 0);

// if (dest != src) {
// void **dest_ = (void **)dest;
// void **src_ = (void **)src;
// void **end = dest_ + n / sizeof(void *);

// for (; dest_ != end; dest_++, src_++) {
// _Py_atomic_store_ptr_relaxed(dest_, *src_);
// }
// }

// return dest;
// }

// static inline void *
// _Py_atomic_memmove_ptr_store_relaxed(void *dest, void *src, size_t n)
// {
// assert(_Py_IS_ALIGNED(dest, sizeof(void *)));
// assert(_Py_IS_ALIGNED(src, sizeof(void *)));
// assert(n % sizeof(void *) == 0);

// if (dest < src || dest >= (void *)((char *)src + n)) {
// void **dest_ = (void **)dest;
// void **src_ = (void **)src;
// void **end = dest_ + n / sizeof(void *);

// for (; dest_ != end; dest_++, src_++) {
// _Py_atomic_store_ptr_relaxed(dest_, *src_);
// }
// }
// else if (dest > src) {
// n = n / sizeof(void *) - 1;
// void **dest_ = (void **)dest + n;
// void **src_ = (void **)src + n;
// void **end = (void **)dest - 1;

// for (; dest_ != end; dest_--, src_--) {
// _Py_atomic_store_ptr_relaxed(dest_, *src_);
// }
// }

// return dest;
// }




Expand Down
16 changes: 0 additions & 16 deletions Include/cpython/pyatomic_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -600,22 +600,6 @@ static inline Py_ssize_t
_Py_atomic_load_ssize_acquire(const Py_ssize_t *obj)
{ return __atomic_load_n(obj, __ATOMIC_ACQUIRE); }


// --- _Py_atomic_memcpy / _Py_atomic_memmove ------------

static inline void *
_Py_atomic_memcpy_ptr_store_relaxed(void *dest, void *src, size_t n)
{
return memcpy(dest, src, n);
}

static inline void *
_Py_atomic_memmove_ptr_store_relaxed(void *dest, void *src, size_t n)
{
return memmove(dest, src, n);
}


// --- _Py_atomic_fence ------------------------------------------------------

static inline void
Expand Down
16 changes: 0 additions & 16 deletions Include/cpython/pyatomic_msc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1154,22 +1154,6 @@ _Py_atomic_load_ssize_acquire(const Py_ssize_t *obj)
#endif
}


// --- _Py_atomic_memcpy / _Py_atomic_memmove ------------

static inline void *
_Py_atomic_memcpy_ptr_store_relaxed(void *dest, void *src, size_t n)
{
return memcpy(dest, src, n);
}

static inline void *
_Py_atomic_memmove_ptr_store_relaxed(void *dest, void *src, size_t n)
{
return memmove(dest, src, n);
}


// --- _Py_atomic_fence ------------------------------------------------------

static inline void
Expand Down
15 changes: 0 additions & 15 deletions Include/cpython/pyatomic_std.h
Original file line number Diff line number Diff line change
Expand Up @@ -1088,21 +1088,6 @@ _Py_atomic_load_ssize_acquire(const Py_ssize_t *obj)
}


// --- _Py_atomic_memcpy / _Py_atomic_memmove ------------

static inline void *
_Py_atomic_memcpy_ptr_store_relaxed(void *dest, void *src, size_t n)
{
return memcpy(dest, src, n);
}

static inline void *
_Py_atomic_memmove_ptr_store_relaxed(void *dest, void *src, size_t n)
{
return memmove(dest, src, n);
}


// --- _Py_atomic_fence ------------------------------------------------------

static inline void
Expand Down
Loading