GNU bug report logs -
#17049
[PATCH] Make reverse! forego the cost of SCM_VALIDATE_LIST
Previous Next
Reported by: David Kastrup <dak <at> gnu.org>
Date: Thu, 20 Mar 2014 11:24:01 UTC
Severity: wishlist
Tags: notabug, patch
Done: Mark H Weaver <mhw <at> netris.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 17049 <at> debbugs.gnu.org (full text, mbox):
Andy Wingo <wingo <at> pobox.com> writes:
> On Thu 20 Mar 2014 12:23, David Kastrup <dak <at> gnu.org> writes:
>
>> + /* We did not start with a proper list. Undo the reversal. */
>
> I'm hesitant. This is visible to other threads. (Granted there has to
> be significant wrongness if we get here...)
If one thread attempts to access a list that's being destructively
reversed by another thread, the behavior is undefined. Incidentally,
that's also the reason that your recent changes to 'for-each' are
defensible, Andy. Therefore, I strongly believe this to be a non-issue.
I have yet to review this patch properly (except to notice that it does
not follow the GNU coding standards w.r.t. bracket placement, which
needs to be fixed), but based on the high-level description, it sounds
good to me, and also quite clever.
Regards,
Mark
This bug report was last modified 11 years and 58 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.