aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorChia-hung Duan <chiahungduan@google.com>2023-05-25 17:36:10 +0000
committerChia-hung Duan <chiahungduan@google.com>2023-05-25 18:07:55 +0000
commit11ea40cff5413057d823a4b3ac5ac419b674dc56 (patch)
tree2a434921642c0343c656c92e6931b17a8280d002 /clang/lib/Basic/Module.cpp
parent8cdbf8d3e7b88da376a09a58ddd1fcc00cf30bb2 (diff)
downloadllvm-11ea40cff5413057d823a4b3ac5ac419b674dc56.zip
llvm-11ea40cff5413057d823a4b3ac5ac419b674dc56.tar.gz
llvm-11ea40cff5413057d823a4b3ac5ac419b674dc56.tar.bz2
[scudo] releaseToOSMaybe can fail if it can't allocate PageMap
PageMap is allocated with MAP_ALLOWNOMEM if there's no static buffer left. So it can be failed and return nullptr without any assertion triggered. Instead of crashing in the releaseToOSMaybe in the middle, just return and let the program handles the page failure. Reviewed By: cferris Differential Revision: https://reviews.llvm.org/D151379
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions