summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CodeMoverUtils.cpp
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2019-11-21 10:57:49 -0800
committerKostya Kortchinsky <kostyak@google.com>2019-11-25 08:38:45 -0800
commit15664fe2c48be242b4b38422466246e9592b6670 (patch)
tree26e2a6b7efba375c86d91f7e8b8e69d64489240a /llvm/lib/Transforms/Utils/CodeMoverUtils.cpp
parentbec37c3fc766a7b97f8c52c181c325fd47b75259 (diff)
downloadbcm5719-llvm-15664fe2c48be242b4b38422466246e9592b6670.tar.gz
bcm5719-llvm-15664fe2c48be242b4b38422466246e9592b6670.zip
[scudo][standalone] Fix for releaseToOS prior to init
Summary: cferris@ found an issue where calling `releaseToOS` prior to any other heap operation would lead to a crash, due to the allocator not being properly initialized (it was discovered via `mallopt`). The fix is to call `initThreadMaybe` prior to calling `releaseToOS` for the Primary. Add a test that crashes prior to fix. Reviewers: hctim, cferris, pcc, eugenis Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D70552
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeMoverUtils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud