summaryrefslogtreecommitdiff
path: root/src/compiler-support.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2021-09-09 14:40:03 -0700
committerGitHub <noreply@github.com>2021-09-09 21:40:03 +0000
commitd127f82d7dbe27a35e07a4f3a723fa7b6811c756 (patch)
treed901b5ad3d5ab55792a5618d118d0d9b335b470b /src/compiler-support.h
parent4e4c53c62c93e6dbb165ac3e941ef85c65ddb359 (diff)
downloadbinaryen-d127f82d7dbe27a35e07a4f3a723fa7b6811c756.tar.gz
binaryen-d127f82d7dbe27a35e07a4f3a723fa7b6811c756.tar.bz2
binaryen-d127f82d7dbe27a35e07a4f3a723fa7b6811c756.zip
Make static buffers in numToString thread local (#4134)
Validation is performed on multiple threads at once and when there are multiple validation failures, those threads can all end up in `numToString` at the same time as they construct their respective error messages. Previously the threads would race on their access to the snprintf buffers, sometimes leading to segfaults. Fix the data races by making the buffers thread local.
Diffstat (limited to 'src/compiler-support.h')
0 files changed, 0 insertions, 0 deletions