@@ -38,12 +38,12 @@ extern void pg_spinlock_barrier(void);
3838#ifndef pg_compiler_barrier_impl
3939/*
4040 * If the compiler/arch combination does not provide compiler barriers,
41- * provide a fallback. That fallback simply consists out of a function call
42- * into a externally defined function. That should guarantee compiler barrier
41+ * provide a fallback. The fallback simply consists of a function call into
42+ * an externally defined function. That should guarantee compiler barrier
4343 * semantics except for compilers that do inter translation unit/global
4444 * optimization - those better provide an actual compiler barrier.
4545 *
46- * Using a native compiler barrier for sure is a lot faster than this...
46+ * A native compiler barrier for sure is a lot faster than this...
4747 */
4848#define PG_HAVE_COMPILER_BARRIER_EMULATION
4949extern void pg_extern_compiler_barrier (void );
@@ -52,7 +52,7 @@ extern void pg_extern_compiler_barrier(void);
5252
5353
5454/*
55- * If we have atomics implementation for this platform fall back to providing
55+ * If we have atomics implementation for this platform, fall back to providing
5656 * the atomics API using a spinlock to protect the internal state. Possibly
5757 * the spinlock implementation uses semaphores internally...
5858 *
@@ -122,7 +122,7 @@ pg_atomic_unlocked_test_flag_impl(volatile pg_atomic_flag *ptr)
122122 /*
123123 * Can't do this efficiently in the semaphore based implementation - we'd
124124 * have to try to acquire the semaphore - so always return true. That's
125- * correct, because this is only an unlocked test anyway.Do this in the
125+ * correct, because this is only an unlocked test anyway. Do this in the
126126 * header so compilers can optimize the test away.
127127 */
128128 return true;
0 commit comments