arkworks-rs / std

A standard library wrapper for use in the `arkworks` ecosystem
https://www.arkworks.rs
Apache License 2.0
37 stars 33 forks source link

Fix incorrect use of atomic variable in `src/perf_trace.rs` #47

Open AsterNighT opened 9 months ago

AsterNighT commented 9 months ago

Description

This PR changed a few lines in src/perf_trace.rs on atomic variable accessing and modifying. As far as I can see these duplicated fetch_adds makes the entire macro non-atomic and should be merged into one.


Before we can merge this PR, please make sure that all the following items have been checked off. If any of the checklist items are not applicable, please leave them but write a little note why.

I could use some suggestions on how such unit test can be designed. And I believe this is a merely bug fix and no relevant documentation needs to be updated.