summaryrefslogtreecommitdiffhomepage
path: root/device/alignment_test.go
AgeCommit message (Collapse)Author
2021-02-09device: fix alignment on 32-bit machines and test for itJason A. Donenfeld
The test previously checked the offset within a substruct, not the offset within the allocated struct, so this adds the two together. It then fixes an alignment crash on 32-bit machines. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-02-02device: use a waiting sync.Pool instead of a channelJason A. Donenfeld
Channels are FIFO which means we have guaranteed cache misses. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-01-29device: use int64 instead of atomic.Value for time stampJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>