aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 8c825bd9261..04703916755 100644
--- a/src/include/port/atomics.h
+++ b/src/include/port/atomics.h
@@ -174,8 +174,6 @@
static inline void
pg_atomic_init_flag(volatile pg_atomic_flag *ptr)
{
- AssertPointerAlignment(ptr, sizeof(*ptr));
-
pg_atomic_init_flag_impl(ptr);
}
@@ -189,8 +187,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);
}
@@ -204,8 +200,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);
}
@@ -217,8 +211,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);
}