llvm-project/libcxxabi
Igor Kudrin d9edde4ae2 Recommit r282692: [libc++abi] Use fallback_malloc to allocate __cxa_eh_globals in case of dynamic memory exhaustion.
Throwing an exception for the first time may lead to call calloc to
allocate memory for __cxa_eh_globals. If the memory pool is exhausted
at that moment, it results in abnormal termination of the program.

This patch addresses the issue by using fallback_malloc in that case.

In this revision, some restrictions were added into the test to not
run it in unsuitable environments.

Differential Revision: https://reviews.llvm.org/D17815

llvm-svn: 283531
2016-10-07 08:48:28 +00:00
..
cmake [CMake] Trying to fix the bots I broke 2016-08-29 22:26:00 +00:00
include [libc++abi] Default to DLL annotations on Windows 2016-09-27 03:44:09 +00:00
lib Add ability to set OPTIONS for compile 2013-09-09 23:53:08 +00:00
src Recommit r282692: [libc++abi] Use fallback_malloc to allocate __cxa_eh_globals in case of dynamic memory exhaustion. 2016-10-07 08:48:28 +00:00
test Recommit r282692: [libc++abi] Use fallback_malloc to allocate __cxa_eh_globals in case of dynamic memory exhaustion. 2016-10-07 08:48:28 +00:00
www [CMake] Be more consistent about naming targets and components in libc++abi 2016-08-28 18:28:51 +00:00
.arcconfig Fix arc config to use https 2016-07-18 02:05:52 +00:00
.gitignore .gitignore: ignore vim swap files 2015-12-04 02:15:02 +00:00
CMakeLists.txt [CMake] Fix libc++abi standalone cmake build. 2016-10-03 11:08:17 +00:00
CREDITS.TXT Adding ABI support for __cxa_throw_bad_array_new_length. 2014-09-11 17:26:43 +00:00
LICENSE.TXT Update copyright year to 2016. 2016-03-30 22:40:47 +00:00