algorand / algorand/go-algorand
check alignment of all atomic vars
オープン
new-feature-request
Team Carbon-11
- 主要言語
- Go
- スター
- 1.4k
- フォーク
- 537
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 18
説明
## Problem
On 32 bit platforms (ARM) `sync/atomic` operations can crash if a 64 bit value is misaligned.
## Solution
Create unit tests that use `unsafe.Offset` to check if that `% 8 == 0`
See `network/wsPeer_test.go`
## Dependencies
None
## Urgency
Nice-to-have. 32 bit platforms aren't much used.
コントリビューションガイド
評価
この issue はまだ評価されていません。