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:
11
configure
vendored
11
configure
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user