gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, feature/pma, updated. gawk-4.1.0-4735-g75b69fd5


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/pma, updated. gawk-4.1.0-4735-g75b69fd5
Date: Thu, 26 May 2022 22:10:19 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, feature/pma has been updated
       via  75b69fd522e743cc2ecee53a09cffc71b8166cb8 (commit)
      from  b72ee95db8eb6caa2b0b946ac3eba6d4771a33d5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=75b69fd522e743cc2ecee53a09cffc71b8166cb8

commit 75b69fd522e743cc2ecee53a09cffc71b8166cb8
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Thu May 26 22:10:01 2022 -0400

    Add configure check for ability to use pma.

diff --git a/ChangeLog b/ChangeLog
index 33eb45b1..bbb70ea8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2022-05-26         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * configure.ac (GAWK_USE_PERSISTENT_MALLOC): Add call.
+
 2022-05-24         Adam Van Scyoc        <avanscy@g.clemson.edu>
 
        * awkgram.y (make_assignable): Handle Op_field_assign.
diff --git a/Makefile.in b/Makefile.in
index 5c77b9e8..7aee5e87 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -128,8 +128,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \
        $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \
        $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/mpfr.m4 \
        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/noreturn.m4 \
-       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
-       $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \
+       $(top_srcdir)/m4/pma.m4 $(top_srcdir)/m4/po.m4 \
+       $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \
+       $(top_srcdir)/m4/socket.m4 \
        $(top_srcdir)/m4/triplet-transformation.m4 \
        $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
diff --git a/aclocal.m4 b/aclocal.m4
index 2c000089..0891c33d 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1223,6 +1223,7 @@ m4_include([m4/longlong.m4])
 m4_include([m4/mpfr.m4])
 m4_include([m4/nls.m4])
 m4_include([m4/noreturn.m4])
+m4_include([m4/pma.m4])
 m4_include([m4/po.m4])
 m4_include([m4/progtest.m4])
 m4_include([m4/readline.m4])
diff --git a/awklib/Makefile.in b/awklib/Makefile.in
index 59ff7cdb..21187926 100644
--- a/awklib/Makefile.in
+++ b/awklib/Makefile.in
@@ -120,8 +120,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \
        $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \
        $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/mpfr.m4 \
        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/noreturn.m4 \
-       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
-       $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \
+       $(top_srcdir)/m4/pma.m4 $(top_srcdir)/m4/po.m4 \
+       $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \
+       $(top_srcdir)/m4/socket.m4 \
        $(top_srcdir)/m4/triplet-transformation.m4 \
        $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
diff --git a/configh.in b/configh.in
index 885dd006..283dcba2 100644
--- a/configh.in
+++ b/configh.in
@@ -406,6 +406,9 @@
 /* Define to 1 if the character set is EBCDIC */
 #undef USE_EBCDIC
 
+/* Define to 1 if we can use the pma allocator */
+#undef USE_PERSISTENT_MALLOC
+
 /* Enable extensions on AIX 3, Interix.  */
 #ifndef _ALL_SOURCE
 # undef _ALL_SOURCE
diff --git a/configure b/configure
index 648eabd0..be36b330 100755
--- a/configure
+++ b/configure
@@ -12518,6 +12518,27 @@ printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
   fi
 
 
+
+  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
+if test "x$ac_cv_func_mmap" = xyes
+then :
+
+fi
+
+  ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
+if test "x$ac_cv_func_munmap" = xyes
+then :
+
+fi
+
+  if test $ac_cv_func_mmap = yes && test $ac_cv_func_munmap = yes
+  then
+
+printf "%s\n" "#define USE_PERSISTENT_MALLOC 1" >>confdefs.h
+
+  fi
+
+
 # Check whether --enable-extensions was given.
 if test ${enable_extensions+y}
 then :
diff --git a/configure.ac b/configure.ac
index 38197101..d35aaa09 100644
--- a/configure.ac
+++ b/configure.ac
@@ -317,6 +317,9 @@ AC_CHECK_FUNCS(__etoa_l atexit btowc fmod gai_strerror \
 dnl this check is for both mbrtowc and the mbstate_t type, which is good
 AC_FUNC_MBRTOWC
 
+dnl check if we can use the persistent memory allocator
+GAWK_USE_PERSISTENT_MALLOC
+
 dnl check for dynamic linking
 dnl This is known to be very primitive
 AC_ARG_ENABLE([extensions],
diff --git a/doc/Makefile.in b/doc/Makefile.in
index aa9f18e7..34212f65 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -122,8 +122,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \
        $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \
        $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/mpfr.m4 \
        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/noreturn.m4 \
-       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
-       $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \
+       $(top_srcdir)/m4/pma.m4 $(top_srcdir)/m4/po.m4 \
+       $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \
+       $(top_srcdir)/m4/socket.m4 \
        $(top_srcdir)/m4/triplet-transformation.m4 \
        $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
diff --git a/extras/Makefile.in b/extras/Makefile.in
index 7cb82e0b..9ee6e9cd 100644
--- a/extras/Makefile.in
+++ b/extras/Makefile.in
@@ -121,8 +121,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \
        $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \
        $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/mpfr.m4 \
        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/noreturn.m4 \
-       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
-       $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \
+       $(top_srcdir)/m4/pma.m4 $(top_srcdir)/m4/po.m4 \
+       $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \
+       $(top_srcdir)/m4/socket.m4 \
        $(top_srcdir)/m4/triplet-transformation.m4 \
        $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
diff --git a/m4/ChangeLog b/m4/ChangeLog
index fb2467fb..234dd111 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,7 @@
+2022-05-26         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * pma.m4: New file.
+
 2021-10-27         Arnold D. Robbins     <arnold@skeeve.com>
 
        * 5.1.1: Release tar ball made.
diff --git a/m4/pma.m4 b/m4/pma.m4
new file mode 100644
index 00000000..a9fcd79e
--- /dev/null
+++ b/m4/pma.m4
@@ -0,0 +1,16 @@
+dnl Decide whether or not to use the persistent memory allocator
+
+# Copyright (C) 2022 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+AC_DEFUN([GAWK_USE_PERSISTENT_MALLOC],
+[
+  AC_CHECK_FUNC([mmap])
+  AC_CHECK_FUNC([munmap])
+  if test $ac_cv_func_mmap = yes && test $ac_cv_func_munmap = yes
+  then
+       AC_DEFINE(USE_PERSISTENT_MALLOC, 1, [Define to 1 if we can use the pma 
allocator])
+  fi
+])
diff --git a/support/Makefile.in b/support/Makefile.in
index 476e7edf..ed05e03c 100644
--- a/support/Makefile.in
+++ b/support/Makefile.in
@@ -121,8 +121,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \
        $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \
        $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/mpfr.m4 \
        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/noreturn.m4 \
-       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
-       $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \
+       $(top_srcdir)/m4/pma.m4 $(top_srcdir)/m4/po.m4 \
+       $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \
+       $(top_srcdir)/m4/socket.m4 \
        $(top_srcdir)/m4/triplet-transformation.m4 \
        $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
diff --git a/test/Makefile.in b/test/Makefile.in
index c031daf7..2673a17b 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -120,8 +120,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \
        $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \
        $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/mpfr.m4 \
        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/noreturn.m4 \
-       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
-       $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \
+       $(top_srcdir)/m4/pma.m4 $(top_srcdir)/m4/po.m4 \
+       $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \
+       $(top_srcdir)/m4/socket.m4 \
        $(top_srcdir)/m4/triplet-transformation.m4 \
        $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |  4 ++++
 Makefile.in         |  5 +++--
 aclocal.m4          |  1 +
 awklib/Makefile.in  |  5 +++--
 configh.in          |  3 +++
 configure           | 21 +++++++++++++++++++++
 configure.ac        |  3 +++
 doc/Makefile.in     |  5 +++--
 extras/Makefile.in  |  5 +++--
 m4/ChangeLog        |  4 ++++
 m4/pma.m4           | 16 ++++++++++++++++
 support/Makefile.in |  5 +++--
 test/Makefile.in    |  5 +++--
 13 files changed, 70 insertions(+), 12 deletions(-)
 create mode 100644 m4/pma.m4


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]