summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src/fallback_malloc.ipp
Commit message (Collapse)AuthorAgeFilesLines
* Recommit r282692: [libc++abi] Use fallback_malloc to allocate ↵Igor Kudrin2016-10-071-188/+0
| | | | | | | | | | | | | | | | | __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
* Revert r282692: Use fallback_malloc to allocate __cxa_eh_globals in case of ↵Igor Kudrin2016-09-291-0/+188
| | | | | | | | dynamic memory exhaustion. The test breaks build bots. llvm-svn: 282703
* [libc++abi] Use fallback_malloc to allocate __cxa_eh_globals in case of ↵Igor Kudrin2016-09-291-188/+0
| | | | | | | | | | | | | | 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. Differential Revision: https://reviews.llvm.org/D17815 llvm-svn: 282692
* [libcxxabi] cleanup the use of LIBCXXABI_HAS_NO_THREADS macro (NFC)Asiri Rathnayake2016-09-211-8/+8
| | | | | | | Align the naming / use of the macro LIBCXXABI_HAS_NO_THREADS to follow what we have in libcxx. NFC. llvm-svn: 282062
* fallback_malloc: silence conversion warning (NFC)Saleem Abdulrasool2015-06-031-4/+4
| | | | | | | | This silences some conversion warnings from GCC 4.9.2. Simply casting the RHS doesn't seem to be sufficient to silence the warning. Convert the operation equal operator usage to calculation and assignment. llvm-svn: 238945
* fallback_malloc: silence qual-cast warning (NFC)Saleem Abdulrasool2015-06-031-1/+1
| | | | | | | This silences a GCC 4.9.2 qual-cast warning in the fallback_malloc codepath. NFC. llvm-svn: 238944
* s/LIBCXXABI_SINGLE_THREADED/LIBCXXABI_HAS_NO_THREADS/ for consistency with ↵Jonathan Roelofs2014-09-051-3/+3
| | | | | | | | | libcxx Also remove the audotedection part so that if you're crazy enough to want a single-threaded abi library, you'll say so explicitly in the build. llvm-svn: 217262
* On single threaded systems, turn mutexes into nopsJonathan Roelofs2014-05-061-0/+14
| | | | | | http://reviews.llvm.org/D3386 llvm-svn: 208135
* [libcxxabi] Fix broken codesourcery.com links in commentsJonathan Roelofs2014-02-121-1/+1
| | | | | review: http://llvm-reviews.chandlerc.com/D2718 llvm-svn: 201208
* Enable/silence -Wconversion.Howard Hinnant2012-03-081-2/+2
| | | | llvm-svn: 152328
* Enable/silence -Wsign-conversion.Howard Hinnant2012-03-081-1/+1
| | | | llvm-svn: 152323
* Add a descriptive name for a constant. Also I'm at least temporarily waging ↵Howard Hinnant2012-01-301-8/+8
| | | | | | war on throw specs, both old and new style. Except where we have already publicly exposed the throw spec, I'm getting rid of them. They may come back later. But they seem somewhat prone to cyclic dependencies here. The throw spec implies compiler generated code that this library has to jump to during stack unwinding. I'd like to minimize the possiblity that the code used to properly make that jump is itself creating such jumps. llvm-svn: 149251
* By changing all of the throw() specs to noexcept I've been able to compile ↵Howard Hinnant2012-01-241-8/+8
| | | | | | and link all of the source files into a dylib. Prior to this substitution the changed functions were calling __cxa_call_unexpected which isn't implemented yet. However in none of these cases do we actaully want __cxa_call_unexpected to be called. Primative buildit script added. llvm-svn: 148880
* Marshall Clow reminded me that fallback_malloc.cpp was broken out for ↵Howard Hinnant2012-01-241-0/+174
testing purposes. We've agreed to simply rename fallback_malloc.cpp to fallback_malloc.ipp. Thanks Marshall. llvm-svn: 148863
OpenPOWER on IntegriCloud