From: Andy Wingo <wingo@pobox.com>
To: Hans Aberg <haberg-1@telia.com>
Cc: bug-guile bug <bug-guile@gnu.org>
Subject: Re: Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7
Date: Fri, 20 May 2011 15:58:41 +0200 [thread overview]
Message-ID: <m34o4pwk1a.fsf@unquote.localdomain> (raw)
In-Reply-To: <4933C296-178A-4133-9EEA-539E3F7CF976@telia.com> (Hans Aberg's message of "Fri, 20 May 2011 15:39:38 +0200")
Hello,
On Fri 20 May 2011 15:39, Hans Aberg <haberg-1@telia.com> writes:
> There is a comment in in libguile/gc.c suggesting it isn't called, there is:
>
> void
> scm_storage_prehistory ()
> {
> GC_all_interior_pointers = 0;
> GC_set_free_space_divisor (scm_getenv_int ("GC_FREE_SPACE_DIVISOR", 3));
>
> GC_INIT ();
>
> #if (! ((defined GC_VERSION_MAJOR) && (GC_VERSION_MAJOR >= 7))) \
> && (defined SCM_I_GSC_USE_PTHREAD_THREADS)
> /* When using GC 6.8, this call is required to initialize thread-local
> freelists (shouldn't be necessary with GC 7.0). */
> GC_init ();
> #endif
> ...
> }
>
> The presumption is wrong, because it does not work on Mac OS X without calling GC_init() - I have tried.
Did you enable threads? `grep PTHREAD scmconfig.h` to check.
Here is the current definition of GC_INIT ():
/* Portable clients should call this at the program start-up. More */
/* over, some platforms require this call to be done strictly from the */
/* primordial thread. */
#define GC_INIT() { GC_INIT_CONF_DONT_EXPAND; /* pre-init */ \
GC_INIT_CONF_FORCE_UNMAP_ON_GCOLLECT; \
GC_INIT_CONF_MAX_RETRIES; \
GC_INIT_CONF_FREE_SPACE_DIVISOR; \
GC_INIT_CONF_FULL_FREQ; \
GC_INIT_CONF_TIME_LIMIT; \
GC_INIT_CONF_MAXIMUM_HEAP_SIZE; \
GC_init(); /* real GC initialization */ \
GC_INIT_CONF_ROOTS; /* post-init */ \
GC_INIT_CONF_IGNORE_WARN; \
GC_INIT_CONF_INITIAL_HEAP_SIZE; }
So you see it does GC_init(). That was not always the case in previous
versions, AFAIK.
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2011-05-20 13:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87aafb2w68.fsf@gnu.org>
2011-05-15 10:56 ` Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7 Hans Aberg
2011-05-20 10:11 ` Andy Wingo
2011-05-20 10:52 ` Hans Aberg
2011-05-20 11:31 ` Hans Aberg
2011-05-20 13:10 ` Andy Wingo
2011-05-20 13:39 ` Hans Aberg
2011-05-20 13:58 ` Andy Wingo [this message]
2011-05-20 16:21 ` Hans Aberg
2011-05-21 12:58 ` Hans Aberg
2011-05-21 17:20 ` Hans Aberg
2011-06-17 9:26 ` Andy Wingo
2011-06-17 15:58 ` Hans Aberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m34o4pwk1a.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=bug-guile@gnu.org \
--cc=haberg-1@telia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).