-
Type: Improvement
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Find a way to detect runtime errors like
panic: unaligned 64-bit atomic operation [recovered]
during a CI run. Those errors can happen when you run the mongo-go-driver on certain 32-bit architectures (e.g. some 32-bit ARM platforms). Some static analysis tools, like `go vet`, may provide a checker for 64-bit alignment atomically-accessed struct fields.
See PR #723 for the original context of this improvement.
See this article for more information on memory alignment in Go.
- is related to
-
GODRIVER-1066 linter issues
- Closed
-
GODRIVER-2236 Atomic alignment of connectionstate in topology.Server
- Closed