summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/port/atomics.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/include/port/atomics.h b/src/include/port/atomics.h
index 4e15ff8764d..b955c73bb01 100644
--- a/src/include/port/atomics.h
+++ b/src/include/port/atomics.h
@@ -173,8 +173,6 @@
static inline void
pg_atomic_init_flag(volatile pg_atomic_flag *ptr)
{
- AssertPointerAlignment(ptr, sizeof(*ptr));
-
pg_atomic_init_flag_impl(ptr);
}
@@ -188,8 +186,6 @@ pg_atomic_init_flag(volatile pg_atomic_flag *ptr)
static inline bool
pg_atomic_test_set_flag(volatile pg_atomic_flag *ptr)
{
- AssertPointerAlignment(ptr, sizeof(*ptr));
-
return pg_atomic_test_set_flag_impl(ptr);
}
@@ -203,8 +199,6 @@ pg_atomic_test_set_flag(volatile pg_atomic_flag *ptr)
static inline bool
pg_atomic_unlocked_test_flag(volatile pg_atomic_flag *ptr)
{
- AssertPointerAlignment(ptr, sizeof(*ptr));
-
return pg_atomic_unlocked_test_flag_impl(ptr);
}
@@ -216,8 +210,6 @@ pg_atomic_unlocked_test_flag(volatile pg_atomic_flag *ptr)
static inline void
pg_atomic_clear_flag(volatile pg_atomic_flag *ptr)
{
- AssertPointerAlignment(ptr, sizeof(*ptr));
-
pg_atomic_clear_flag_impl(ptr);
}