about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-11-16 09:26:42 +0000
committerEric Wong <e@80x24.org>2022-11-16 09:47:14 +0000
commitb357956a996778cf47ac2d804d1a98eae48cfb67 (patch)
treeba41829412bbd1206ba14011416c4dc9844c3699
parenta2bd27527ed535b2d61e7d247ec2fbf4991b6618 (diff)
downloadmwrap-b357956a996778cf47ac2d804d1a98eae48cfb67.tar.gz
While 64 has an obvious meaning to me, I reject Moore's law
and have no idea what cache line sizes modern CPUs use.
-rw-r--r--mwrap_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mwrap_core.h b/mwrap_core.h
index 09b579d..94a6af3 100644
--- a/mwrap_core.h
+++ b/mwrap_core.h
@@ -68,7 +68,7 @@ static size_t *root_locating; /* determines if PL_curcop is our thread */
 static struct cds_lfht *totals;
 union padded_mutex {
         pthread_mutex_t mtx;
-        char pad[64];
+        char pad[64]; /* cache alignment for common CPUs */
 };
 
 /* a round-robin pool of mutexes */