dvyukov / relacy

Automatically exported from code.google.com/p/relacy
Other
209 stars 32 forks source link

Fix memory related bugs #24

Closed ccotter closed 2 months ago

ccotter commented 2 months ago
dvyukov commented 2 months ago
  • Use debug_info for data members instead of debug_info_param (which is a reference). Caught by ASAN.

I don't see this in the changes. Am I missing something? Have you forgot to add some files?

ccotter commented 2 months ago

I don't see this in the changes. Am I missing something? Have you forgot to add some files?

~I'm not sure where those changes went - I must have had an older version of mutex.hpp which had data members as debug_info_param. The latest version of the code doesn't have that though. I amended the commit message.~

Ah, ok, it was in the newly introduced unique_lock/lock_guard...