diff options
-rw-r--r-- | ACE/ChangeLog | 5 | ||||
-rw-r--r-- | ACE/configure.ac | 24 |
2 files changed, 27 insertions, 2 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog index 7613360002c..9c7533339f4 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 16 19:41:23 UTC 2007 Steve Huston <shuston@riverace.com> + + * configure.ac: Adjusted the checks for "new throws..." to grab + much larger chunks; helps it run quicker and more accurately. + Thu Aug 16 15:28:45 UTC 2007 Phil Mesnier <mesnier_p@ociweb.com> * ace/Service_Config.cpp: diff --git a/ACE/configure.ac b/ACE/configure.ac index 540430ca1e4..645602f5150 100644 --- a/ACE/configure.ac +++ b/ACE/configure.ac @@ -5221,10 +5221,20 @@ if test "$ace_user_enable_exceptions" = yes; then # include <exception.h> #endif +/* We already checked for ACE_LACKS_NUMERIC_LIMITS */ +#if !defined ACE_LACKS_NUMERIC_LIMITS +#include <limits> +#endif + int main(int, char *[]) { +#if defined ACE_LACKS_NUMERIC_LIMITS + const size_t ALLOC_SIZE = 2 * 1024 * 1024 * 1024; +#else + const size_t ALLOC_SIZE = std::numeric_limits<size_t>::max () / 2; +#endif while (1) { try { - char *a = new char[1024*1024]; + char *a = new char[ALLOC_SIZE]; if (a == 0) { return 1; /* new() does NOT throw exceptions */ } @@ -5268,10 +5278,20 @@ if test "$ace_user_enable_exceptions" = yes; then # include <exception.h> #endif +/* We already checked for ACE_LACKS_NUMERIC_LIMITS */ +#if !defined ACE_LACKS_NUMERIC_LIMITS +#include <limits> +#endif + int main(int, char *[]) { +#if defined ACE_LACKS_NUMERIC_LIMITS + const size_t ALLOC_SIZE = 2 * 1024 * 1024 * 1024; +#else + const size_t ALLOC_SIZE = std::numeric_limits<size_t>::max () / 2; +#endif while (1) { try { - char *a = new char[1024*1024]; + char *a = new char[ALLOC_SIZE]; if (a == 0) { return 1; /* new() does NOT throw exceptions */ } |