core/filtermaps: ensure 8 byte alignment of struct fields

pull/30370/head
Zsolt Felfoldi 2 months ago
parent 2423a35056
commit 3cf807b65e
  1. 8
      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 // gives a match at X+offset. Note that matchSequence can be used recursively to
// detect any log value sequence. // detect any log value sequence.
type matchSequence struct { type matchSequence struct {
params *Params baseEmptyRate, nextEmptyRate uint64 // first in struct to ensure 8 byte alignment
base, next matcher params *Params
offset uint64 base, next matcher
offset uint64
// *EmptyRate == totalCount << 32 + emptyCount (atomically accessed) // *EmptyRate == totalCount << 32 + emptyCount (atomically accessed)
baseEmptyRate, nextEmptyRate uint64
} }
// newMatchSequence creates a recursive sequence matcher from a list of underlying // newMatchSequence creates a recursive sequence matcher from a list of underlying

Loading…
Cancel
Save