From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: the new gc asserts in master
Date: Wed, 27 Aug 2008 17:38:52 +0200 [thread overview]
Message-ID: <87myiyh3hv.fsf@gnu.org> (raw)
In-Reply-To: g93mnl$69n$1@ger.gmane.org
Hello Han-Wen,
Han-Wen Nienhuys <hanwen@xs4all.nl> writes:
> Over the last weeks I have seen little discussion on your patches, eg.
Please, refrain from resorting to personal attacks.
> commit 582a4997abc8b34ac6caf374fda8ea3ac65bd571
> Author: Ludovic Courtès <ludo@gnu.org>
> Date: Mon Aug 25 11:20:02 2008 +0200
>
> Use $(GCC_CFLAGS) for `-Werror' et al. so that it's not used to compile
> Gnulib code.
>
> commit c95514b3b41c8e335ada863f8abb99cc4af9abe1
> Author: Ludovic Courtès <ludo@gnu.org>
> Date: Thu Aug 14 00:15:03 2008 +0200
>
> Remove the now useless `qthreads.m4'.
These patches are trivial IMO and contain a descriptive git log and
ChangeLog entry. Compare this with the ten-or-so patches that you
committed, which included a far-from-trivial rework of the GC.
From my observations, Neil, Kevin and I have always worked this way,
although this was never formally specified. Perhaps Neil can comment?
> The commit message says,
>
> Set SRCPROP{PLIST,COPY} through a macro, so SCM_DEBUG_CELL_ACCESSES compiles.
>
> how much clearer do you want this message to be?
Sorry if I missed something but my understanding was that you were
referring to a GC fix, which it isn't. Re-reading the thread, it seems
I indeed missed the point, and I apologize. For my defense, I'd say
that I didn't expect a "GC cleanup" to touch all that.
>>>> even the lazy smob case I wrote about here:
>>>>
>>>> http://thread.gmane.org/gmane.lisp.guile.user/6372
>>> I would classify the use of mark bits outside of the mark phase as outside
>>> of the defined API. If you want to have weak pointer semantics, use
>>> a weak hashtable, or implement reference counting on the C side.
>>
>> That's a reasonable argument, but it's something we should not change
>> without discussing it first. For instance, it may be important to study
>> why Guile-GNOME had to resort to this, and how it could avoid it,
>> instead of just gratuitously breaking it.
>
> I'm not suggesting to change without discussing; this message rather
> is the start of the discussion.
Good. However, my understanding of Andy's message was that the "GC
cleanups" already changed that, making Guile-GNOME's recipe fail.
> From ccd010e15ec0ddf285b75911739e85866d2d865c Mon Sep 17 00:00:00 2001
> From: Han-Wen Nienhuys <hanwen@lilypond.org>
> Date: Wed, 27 Aug 2008 10:48:06 -0300
> Subject: [PATCH] Kludge around x86-64 GC runtime checks.
>
> 2008-08-27 Han-Wen Nienhuys <hanwen@lilypond.org>
>
> * gc.c (scm_i_gc): Don't sanity check numbers on x64, while we
> investigate a real fix.
>
> ---
> libguile/gc.c | 4 ++--
> 2 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/libguile/gc.c b/libguile/gc.c
> index 8e8769c..a0b3080 100644
> --- a/libguile/gc.c
> +++ b/libguile/gc.c
> @@ -597,9 +597,9 @@ scm_i_gc (const char *what)
> scm_i_sweep_all_segments ("GC", &scm_i_gc_sweep_stats);
> scm_check_deprecated_memory_return ();
>
> +#if (SCM_DEBUG_CELL_ACCESSES == 0 && SCM_SIZEOF_UNSIGNED_LONG == 4)
x86-64 is not the only arch with 4-byte long long integers.
I'm still in favor of "git revert" since the log message makes it clear
which patch was reverted and why. "We" can then take our time and work
out a proper fix, and finally re-merge the patch plus its fix.
Furthermore, in the eventuality where none of us eventually finds a fix,
`master' is left in the previous state, which is better IMO.
Would you like that solution?
Thanks,
Ludo'.
next prev parent reply other threads:[~2008-08-27 15:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-26 20:12 the new gc asserts in master Andy Wingo
2008-08-27 2:12 ` Han-Wen Nienhuys
2008-08-27 2:41 ` Han-Wen Nienhuys
2008-08-27 7:43 ` Ludovic Courtès
2008-08-27 14:00 ` Han-Wen Nienhuys
2008-08-27 15:38 ` Ludovic Courtès [this message]
2008-08-28 4:08 ` Han-Wen Nienhuys
2008-08-28 4:14 ` Han-Wen Nienhuys
2008-08-28 7:15 ` Ludovic Courtès
2008-09-03 4:39 ` Han-Wen Nienhuys
2008-09-03 8:12 ` Ludovic Courtès
2008-09-03 13:39 ` Han-Wen Nienhuys
2008-09-03 14:49 ` Ludovic Courtès
2008-09-04 2:17 ` Han-Wen Nienhuys
2008-08-27 19:00 ` Andy Wingo
2008-08-27 20:22 ` Andy Wingo
2008-08-28 4:33 ` Han-Wen Nienhuys
2008-08-28 14:17 ` Ludovic Courtès
2008-08-28 4:04 ` Han-Wen Nienhuys
2008-08-28 13:20 ` Han-Wen Nienhuys
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=87myiyh3hv.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-devel@gnu.org \
/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).