Fix some benign races #9225

pull TheBlueMatt wants to merge 5 commits into bitcoin:master from TheBlueMatt:2016-11-lockfixes changing 5 files +32 −36
  1. TheBlueMatt commented at 11:45 PM on November 26, 2016: member

    This fixes some benign races reported by helgrind. It makes some things atomic that need it, and fixes locking in addrman so that some log statements cant print garbage.

  2. Make fDisconnect an std::atomic 42071ca264
  3. Make fImporting an std::atomic 047ea1052d
  4. Fix AddrMan locking dbfaade72a
  5. Remove double brackets in addrman 303352286f
  6. Fix unlocked access to vNodes.size() dfed983f19
  7. MarcoFalke added the label Refactoring on Nov 27, 2016
  8. morcos commented at 2:20 AM on November 27, 2016: member

    Thanks! The fDisconnect race was bothering me.

    utACK

  9. gmaxwell commented at 10:28 AM on November 29, 2016: contributor

    utACK. All looks good to me.

  10. laanwj commented at 11:39 AM on November 29, 2016: member

    utACK dfed983

  11. laanwj merged this on Nov 29, 2016
  12. laanwj closed this on Nov 29, 2016

  13. laanwj referenced this in commit 5488514b90 on Nov 29, 2016
  14. codablock referenced this in commit a3da08090b on Jan 16, 2018
  15. codablock referenced this in commit 0caef236f5 on Jan 16, 2018
  16. codablock referenced this in commit ab9bce2c3a on Jan 17, 2018
  17. andvgal referenced this in commit 3eb43226cd on Jan 6, 2019
  18. CryptoCentric referenced this in commit 935a8cc3db on Feb 25, 2019
  19. random-zebra referenced this in commit 5fcad0c139 on Aug 2, 2020
  20. zkbot referenced this in commit b9504dbb3f on Jan 28, 2021
  21. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 06:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me