From 3cf807b65e9581155004fe0d1eeafdd25bc4c0ee Mon Sep 17 00:00:00 2001 From: Zsolt Felfoldi Date: Sun, 6 Oct 2024 23:01:30 +0200 Subject: [PATCH] core/filtermaps: ensure 8 byte alignment of struct fields --- core/filtermaps/matcher.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/filtermaps/matcher.go b/core/filtermaps/matcher.go index dd088455a9..316a6dff37 100644 --- a/core/filtermaps/matcher.go +++ b/core/filtermaps/matcher.go @@ -334,11 +334,11 @@ func mergeResults(results []potentialMatches) potentialMatches { // gives a match at X+offset. Note that matchSequence can be used recursively to // detect any log value sequence. type matchSequence struct { - params *Params - base, next matcher - offset uint64 + baseEmptyRate, nextEmptyRate uint64 // first in struct to ensure 8 byte alignment + params *Params + base, next matcher + offset uint64 // *EmptyRate == totalCount << 32 + emptyCount (atomically accessed) - baseEmptyRate, nextEmptyRate uint64 } // newMatchSequence creates a recursive sequence matcher from a list of underlying