summaryrefslogtreecommitdiffstats
path: root/contrib/libstdc++/libsupc++/eh_alloc.cc
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-12-21 18:47:00 +0000
committerpfg <pfg@FreeBSD.org>2013-12-21 18:47:00 +0000
commit68205669abdad29d13f7e6b34f483ac1298065ed (patch)
treeb0b89f0ab157d77eed267e3b82dd3ee8ed9e980b /contrib/libstdc++/libsupc++/eh_alloc.cc
parent8f82fe8c1f4a70975704e71ccca87132e0d9af6c (diff)
downloadFreeBSD-src-68205669abdad29d13f7e6b34f483ac1298065ed.zip
FreeBSD-src-68205669abdad29d13f7e6b34f483ac1298065ed.tar.gz
MFC r258017, r258429, r258748, r258817:
Merge updates from FSF pre4.3 GCC inspired on Apple's gcc: Updates to libiberty and mangling. New align attribute. Merge Apple updates to libstdc++.
Diffstat (limited to 'contrib/libstdc++/libsupc++/eh_alloc.cc')
-rw-r--r--contrib/libstdc++/libsupc++/eh_alloc.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/libstdc++/libsupc++/eh_alloc.cc b/contrib/libstdc++/libsupc++/eh_alloc.cc
index 217a8cd..4233502 100644
--- a/contrib/libstdc++/libsupc++/eh_alloc.cc
+++ b/contrib/libstdc++/libsupc++/eh_alloc.cc
@@ -78,6 +78,14 @@ using namespace __cxxabiv1;
# define EMERGENCY_OBJ_COUNT 4
#endif
+/* APPLE LOCAL begin reduce emergency buffer size */
+/* 256 bytes is more than large enough for an std::bad_alloc object */
+#undef EMERGENCY_OBJ_SIZE
+#undef EMERGENCY_OBJ_COUNT
+#define EMERGENCY_OBJ_SIZE 256
+#define EMERGENCY_OBJ_COUNT 2
+/* APPLE LOCAL end reduce emergency buffer size */
+
#if INT_MAX == 32767 || EMERGENCY_OBJ_COUNT <= 32
typedef unsigned int bitmask_type;
#else
OpenPOWER on IntegriCloud