google / marl

A hybrid thread / fiber task scheduler written in C++ 11
Apache License 2.0
1.89k stars 193 forks source link

Guard "bound" accesses from Memory Sanitizer checks #225

Closed sugoi1 closed 2 years ago

sugoi1 commented 2 years ago

The Memory Sanitizer creates false positive on the use of thread local storage variables, so this CL adds a setter for the "bound" variable and MSAN guards for both the setter and the getter.

Bug: https://crbug.com/1341525

c0d1f1ed commented 2 years ago

If the root cause https://github.com/google/sanitizers/issues/1409 gets fixed, this and related workarounds can be reverted.