1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/sdk/metric/aggregator
Tyler Yahn 91091b44eb Add comments and test for 64-bit field alignment (#418)
* Add comments on needed filed alignment

Add comment about alignment requirements to all struct fields who's
values are passed to 64-bit atomic operations.

Update any struct's field ordering if one or more of those fields has
alignment requirements to support 64-bit atomic operations.

* Add 64-bit alignment tests

Most `struct` that have field alignment requirements are now statically
validated prior to testing. The only `struct`s not validated that have
these requirements are ones defined in tests themselves where multiple
`TestMain` functions would be needed to test them. Given the fields are
already identified with comments specifying the alignment requirements
and they are in the test themselves, this seems like an OK omission.

Co-authored-by: Liz Fong-Jones <elizabeth@ctyalcove.org>
2020-01-06 13:08:40 -05:00
..
array Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
counter Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
ddsketch initialize checkpoint when creating ddsketch aggregator to prevent panic when merging into a empty one (#402) (#403) 2019-12-26 08:31:41 -08:00
gauge Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
minmaxsumcount Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
test Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00