commit | ca709c3139f77f4c00a903cdee46d71e9028f6c6 | [log] [tgz] |
---|---|---|
author | Alex Lapenkou <lapenkov@fb.com> | Mon Feb 14 17:57:14 2022 -0800 |
committer | Alexander Lapenkov <lapenkov.a@yandex.ru> | Thu Feb 17 09:35:52 2022 -0800 |
tree | 79467a20910bea6181b11662f5482b0ba1b69a31 | |
parent | 063d134aeb4807872f45a3b7e6b43bed8f6320a2 [diff] |
Fix failed assertion due to racy memory access While calculating the number of stashed pointers, multiple variables potentially modified by a concurrent thread were used for the calculation. This led to some inconsistencies, correctly detected by the assertions. The change eliminates some possible inconsistencies by using unmodified variables and only once a concurrently modified one. The assertions are omitted for the cases where we acknowledge potential inconsistencies too.