1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Allow MEMSET_LOOP_LIMIT to be set on a per-platform basis, and turn off

MemSet on AIX by setting MEMSET_LOOP_LIMIT to zero.

Add optimization to skip MemSet tests in MEMSET_LOOP_LIMIT == 0 case and
just call memset() directly.
This commit is contained in:
Bruce Momjian
2006-02-03 13:53:15 +00:00
parent 59bb147353
commit ebd38e3c1d
5 changed files with 37 additions and 9 deletions

11
configure vendored
View File

@ -21516,6 +21516,17 @@ _ACEOF
SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
# If not set in template file, set bytes to use libc memset()
if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
MEMSET_LOOP_LIMIT=1024
fi
cat >>confdefs.h <<_ACEOF
#define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
_ACEOF
if test "$enable_nls" = yes ; then
echo "$as_me:$LINENO: checking for library containing gettext" >&5