Skip to content

gh-116738: Make _csv module thread-safe #118344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Remove atomic functions for long type
  • Loading branch information
aisk committed Jul 10, 2024
commit 850bf2aed6e9ba8c0af432b1c72b3a46974a06a7
6 changes: 0 additions & 6 deletions Include/cpython/pyatomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,6 @@ _Py_atomic_or_uintptr(uintptr_t *obj, uintptr_t value);
static inline int
_Py_atomic_load_int(const int *obj);

static inline long
_Py_atomic_load_long(const long *obj);

static inline int8_t
_Py_atomic_load_int8(const int8_t *obj);

Expand Down Expand Up @@ -372,9 +369,6 @@ _Py_atomic_load_ullong_relaxed(const unsigned long long *obj);
static inline void
_Py_atomic_store_int(int *obj, int value);

static inline void
_Py_atomic_store_long(long *obj, long value);

static inline void
_Py_atomic_store_int8(int8_t *obj, int8_t value);

Expand Down
8 changes: 0 additions & 8 deletions Include/cpython/pyatomic_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,6 @@ static inline int
_Py_atomic_load_int(const int *obj)
{ return __atomic_load_n(obj, __ATOMIC_SEQ_CST); }

static inline long
_Py_atomic_load_long(const long *obj)
{ return __atomic_load_n(obj, __ATOMIC_SEQ_CST); }

static inline int8_t
_Py_atomic_load_int8(const int8_t *obj)
{ return __atomic_load_n(obj, __ATOMIC_SEQ_CST); }
Expand Down Expand Up @@ -373,10 +369,6 @@ static inline void
_Py_atomic_store_int(int *obj, int value)
{ __atomic_store_n(obj, value, __ATOMIC_SEQ_CST); }

static inline void
_Py_atomic_store_long(long *obj, long value)
{ __atomic_store_n(obj, value, __ATOMIC_SEQ_CST); }

static inline void
_Py_atomic_store_int8(int8_t *obj, int8_t value)
{ __atomic_store_n(obj, value, __ATOMIC_SEQ_CST); }
Expand Down
21 changes: 0 additions & 21 deletions Include/cpython/pyatomic_msc.h
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,6 @@ _Py_atomic_exchange_int(int *obj, int value)
(int32_t)value);
}

static inline int
_Py_atomic_exchange_long(long *obj, long value)
{
_Py_atomic_ASSERT_ARG_TYPE(int32_t);
return (int)_Py_atomic_exchange_int32((int32_t *)obj,
(int32_t)value);
}

static inline unsigned int
_Py_atomic_exchange_uint(unsigned int *obj, unsigned int value)
{
Expand Down Expand Up @@ -589,13 +581,6 @@ _Py_atomic_load_int(const int *obj)
return (int)_Py_atomic_load_uint32((uint32_t *)obj);
}

static inline long
_Py_atomic_load_long(const long *obj)
{
_Py_atomic_ASSERT_ARG_TYPE(uint32_t);
return (int)_Py_atomic_load_uint32((uint32_t *)obj);
}

static inline unsigned int
_Py_atomic_load_uint(const unsigned int *obj)
{
Expand Down Expand Up @@ -742,12 +727,6 @@ _Py_atomic_store_int(int *obj, int value)
(void)_Py_atomic_exchange_int(obj, value);
}

static inline void
_Py_atomic_store_long(long *obj, long value)
{
(void)_Py_atomic_exchange_long(obj, value);
}

static inline void
_Py_atomic_store_int8(int8_t *obj, int8_t value)
{
Expand Down
14 changes: 0 additions & 14 deletions Include/cpython/pyatomic_std.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,6 @@ _Py_atomic_load_int(const int *obj)
return atomic_load((const _Atomic(int)*)obj);
}

static inline long
_Py_atomic_load_long(const long *obj)
{
_Py_USING_STD;
return atomic_load((const _Atomic(long)*)obj);
}

static inline int8_t
_Py_atomic_load_int8(const int8_t *obj)
{
Expand Down Expand Up @@ -644,13 +637,6 @@ _Py_atomic_store_int(int *obj, int value)
atomic_store((_Atomic(int)*)obj, value);
}

static inline void
_Py_atomic_store_long(long *obj, long value)
{
_Py_USING_STD;
atomic_store((_Atomic(long)*)obj, value);
}

static inline void
_Py_atomic_store_int8(int8_t *obj, int8_t value)
{
Expand Down
5 changes: 0 additions & 5 deletions Include/internal/pycore_pyatomic_ft_wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ extern "C" {
_Py_atomic_store_ssize_relaxed(&value, new_value)
#define FT_ATOMIC_STORE_UINT8_RELAXED(value, new_value) \
_Py_atomic_store_uint8_relaxed(&value, new_value)
#define FT_ATOMIC_LOAD_LONG(value) _Py_atomic_load_long(&value)
#define FT_ATOMIC_STORE_LONG(value, new_value) \
_Py_atomic_store_long(&value, new_value)
#define FT_ATOMIC_STORE_UINT16_RELAXED(value, new_value) \
_Py_atomic_store_uint16_relaxed(&value, new_value)
#define FT_ATOMIC_STORE_UINT32_RELAXED(value, new_value) \
Expand All @@ -86,8 +83,6 @@ extern "C" {
#define FT_ATOMIC_STORE_UINTPTR_RELEASE(value, new_value) value = new_value
#define FT_ATOMIC_STORE_SSIZE_RELAXED(value, new_value) value = new_value
#define FT_ATOMIC_STORE_UINT8_RELAXED(value, new_value) value = new_value
#define FT_ATOMIC_LOAD_LONG(value) value
#define FT_ATOMIC_STORE_LONG(value, new_value) value = new_value
#define FT_ATOMIC_STORE_UINT16_RELAXED(value, new_value) value = new_value
#define FT_ATOMIC_STORE_UINT32_RELAXED(value, new_value) value = new_value

Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy