Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Move queueLength to the top of the struct to guarantee 64bit alignment (
Browse files Browse the repository at this point in the history
  • Loading branch information
yurishkuro authored Jun 8, 2017
1 parent fda19be commit 5a7feef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changes by Version
2.6.1 (unreleased)
------------------

- Nothing yet
- Move reporter.queueLength to the top of the struct to guarantee 64bit alignment [#158](https://github.com/uber/jaeger-client-go/pull/158)


2.6.0 (2017-03-28)
Expand Down
5 changes: 4 additions & 1 deletion reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,13 @@ const (
)

type remoteReporter struct {
// must be first in the struct because `sync/atomic` expects 64-bit alignment.
// Cf. https://github.com/uber/jaeger-client-go/issues/155, https://goo.gl/zW7dgq
queueLength int64

reporterOptions
sender Transport
queue chan *Span
queueLength int64 // signed because metric's gauge is signed
queueDrained sync.WaitGroup
flushSignal chan *sync.WaitGroup
}
Expand Down

0 comments on commit 5a7feef

Please sign in to comment.