Skip to content

Commit

Permalink
private/storage/streams/buffer: fix unaligned LoadInt64
Browse files Browse the repository at this point in the history
atomic.LoadInt64 must be aligned on a 8 byte boundary on arm.

Also run staticcheck for arm 32bit to ensure we don't regress on this issue.

Fixes #156

Change-Id: Iefdfe40b1295df118b3b4c576679582130711bf0
  • Loading branch information
egonelbre committed Oct 5, 2023
1 parent c46ff1e commit 138bfc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ pipeline {
sh 'check-errs ./...'
sh './scripts/check-dependencies.sh'
sh 'staticcheck ./...'
sh 'GOOS=linux GOARCH=arm staticcheck ./...'
sh 'golangci-lint --config /go/ci/.golangci.yml -j=2 run'
sh 'go-licenses check ./...'
sh './scripts/check-libuplink-size.sh'
Expand Down
2 changes: 1 addition & 1 deletion private/storage/streams/buffer/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func NewMemoryBackend(cap int64) *MemoryBackend {

// MemoryBackend implements the Backend interface backed by a slice.
type MemoryBackend struct {
buf []byte
len int64
buf []byte
closed bool
}

Expand Down

0 comments on commit 138bfc7

Please sign in to comment.