tsan: fix latent bug in shadow computation
We use kShadowCnt (number of shadow cells per application granule) when computing shadow, but it's wrong. We need the ratio between shadow and app memory (how much shadow is larger than app memory), which is kShadowMultiplier. Currently both are equal to 4, so it works fine. Use the correct constant. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D108033
Loading
Please register or sign in to comment