core/filtermaps: ensure 8 byte alignment of struct fields
This commit is contained in:
parent
4ecb311798
commit
05f8d20185
|
@ -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…
Reference in New Issue