From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: request review: branch "wingo" Date: Fri, 27 Mar 2009 16:29:55 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1238196649 27460 80.91.229.12 (27 Mar 2009 23:30:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2009 23:30:49 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Mar 28 00:32:07 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LnLWp-0000ip-S7 for guile-devel@m.gmane.org; Sat, 28 Mar 2009 00:32:00 +0100 Original-Received: from localhost ([127.0.0.1]:44926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnLVS-00008m-Nx for guile-devel@m.gmane.org; Fri, 27 Mar 2009 19:30:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnLVA-0008Pi-52 for guile-devel@gnu.org; Fri, 27 Mar 2009 19:30:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnLV5-0008NV-6t for guile-devel@gnu.org; Fri, 27 Mar 2009 19:30:15 -0400 Original-Received: from [199.232.76.173] (port=50025 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnLV5-0008NQ-1k for guile-devel@gnu.org; Fri, 27 Mar 2009 19:30:11 -0400 Original-Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:45667 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LnLV4-0000yY-Ki for guile-devel@gnu.org; Fri, 27 Mar 2009 19:30:10 -0400 Original-Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id AC193A5C3D for ; Fri, 27 Mar 2009 19:30:07 -0400 (EDT) Original-Received: from unquote (unknown [66.92.56.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 1C654A5C3C for ; Fri, 27 Mar 2009 19:30:06 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-Pobox-Relay-ID: 35201762-1B27-11DE-8358-32B0EBB1AA3C-02397024!a-sasl-fastnet.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8347 Archived-At: Hi, On the "wingo" branch in the main repository, you will find the following patches: The following changes since commit 0fe95f9c4ce063781e79a15bc123c57c33ef= 9755: Ludovic Court=C3=A8s (1): Improve wording in `libguile/Makefile.am' regarding stack calib= ration. are available in the git repository at: git.sv.gnu.org:/srv/git/guile.git wingo Andy Wingo (7): allow building against uninstalled guile; move some things to met= a/ add getrlimit and setrlimit wrappers getrlimit-based stack limits rely on getrlimit to DTRT, don't make stack calibration file fix check for guile-tools running uninstalled fix "linking" of guile-config fix distcheck hopefully, by cleaning the vm-i-*.i files .gitignore | 1 - Makefile.am | 9 +- README | 20 ++- am/guilec | 4 +- am/pre-inst-guile | 2 +- check-guile.in | 5 +- configure.in | 16 +- doc/ref/Makefile.am | 4 +- gc-benchmarks/run-benchmark.scm | 2 +- libguile/Makefile.am | 25 +--- libguile/debug.c | 36 ++++ libguile/measure-hwm.scm | 136 ------------= --- libguile/posix.c | 174 ++++++++++++= ++++++++ libguile/posix.h | 2 + {guile-config =3D> meta}/ChangeLog-2008 | 0=20 {guile-config =3D> meta}/Makefile.am | 25 +-- .../gdb-uninstalled-guile.in | 10 +- meta/guile-1.8-uninstalled.pc.in | 8 + guile-1.8.pc.in =3D> meta/guile-1.8.pc.in | 0=20 {guile-config =3D> meta}/guile-config.in | 7 +- guile-tools.in =3D> meta/guile-tools.in | 2 +- pre-inst-guile.in =3D> meta/guile.in | 6 +- {guile-config =3D> meta}/guile.m4 | 0=20 pre-inst-guile-env.in =3D> meta/uninstalled-env.in | 17 ++- test-suite/standalone/Makefile.am | 2 +- test-suite/standalone/README | 2 +- test-suite/standalone/test-fast-slot-ref.in | 2 +- test-suite/standalone/test-use-srfi.in | 6 +- testsuite/Makefile.am | 2 +- 29 files changed, 299 insertions(+), 226 deletions(-) delete mode 100644 libguile/measure-hwm.scm rename {guile-config =3D> meta}/ChangeLog-2008 (100%) rename {guile-config =3D> meta}/Makefile.am (59%) rename gdb-pre-inst-guile.in =3D> meta/gdb-uninstalled-guile.in (79%) create mode 100644 meta/guile-1.8-uninstalled.pc.in rename guile-1.8.pc.in =3D> meta/guile-1.8.pc.in (100%) rename {guile-config =3D> meta}/guile-config.in (98%) rename guile-tools.in =3D> meta/guile-tools.in (98%) rename pre-inst-guile.in =3D> meta/guile.in (93%) rename {guile-config =3D> meta}/guile.m4 (100%) rename pre-inst-guile-env.in =3D> meta/uninstalled-env.in (87%) The patches fix distcheck again, but the interesting one is ec900eacb71bbf66b85a5605f67f83b43f2c6ca8, which does this in debug.c: @@ -513,11 +518,42 @@ SCM_DEFINE (scm_debug_hang, "debug-hang", 0, 1, 0, #undef FUNC_NAME #endif =20=20=20=20=20 +static void +init_stack_limit (void) +{ +#ifdef HAVE_GETRLIMIT + struct rlimit lim; + if (getrlimit (RLIMIT_STACK, &lim) =3D=3D 0) + { + int bytes =3D lim.rlim_cur, words; + + /* set our internal stack limit to 1 MB or 80% of the rlimit, = whichever + is lower. */ + if (bytes =3D=3D RLIM_INFINITY) + bytes =3D lim.rlim_max; + + if (bytes =3D=3D RLIM_INFINITY) + words =3D 1024 * 1024 / sizeof (scm_t_bits); + else + { + bytes =3D bytes * 8 / 10; + if (bytes > 1024 * 1024) + bytes =3D 1024 * 1024; + words =3D bytes / sizeof (scm_t_bits); + } + + SCM_STACK_LIMIT =3D words; + } + errno =3D 0; +#endif +} + =20=20=20=20=20 void scm_init_debug () { + init_stack_limit (); scm_init_opts (scm_debug_options, scm_debug_opts); [...] Comments? OK to merge to master? Andy --=20 http://wingolog.org/