From 8cd5e26b448c5d13ff102e017da81233c7c48fc4 Mon Sep 17 00:00:00 2001 From: Bando Masaya Date: Fri, 6 Sep 2024 16:04:52 +0900 Subject: [PATCH] Ensure proper memory address aliginment --- statsd/buffered_metric_context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/statsd/buffered_metric_context.go b/statsd/buffered_metric_context.go index 94b31fe5..e2f65346 100644 --- a/statsd/buffered_metric_context.go +++ b/statsd/buffered_metric_context.go @@ -11,6 +11,7 @@ import ( // and Timing. Since those 3 metric types behave the same way and are sampled // with the same type they're represented by the same class. type bufferedMetricContexts struct { + _ [4]byte // Aligin to a 4-byte boundary nbContext uint64 mutex sync.RWMutex values bufferedMetricMap