guile-devel
[Top][All Lists]
Advanced

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

Re: array handles and non-local exits


From: Ludovic Courtès
Subject: Re: array handles and non-local exits
Date: Sun, 05 Jul 2009 13:14:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Hello,

Andy Wingo <address@hidden> writes:

> I'm hacking on this code right now, and have come to think that
> scm_array_handle_release is superfluous. It shouldn't protect against
> concurrent modification of the data, as that should be done with
> user-implemented mutexen. It obviously doesn't do anything now -- and
> really, it doesn't have anything to do. I can't think of a /supported/
> modification of an array that will leave a pointer to the elements
> invalid -- i.e. we have no truncation ops that I know of.

How about copy-on-write stringbufs as produced by `substring'?  I
suppose it's only a problem is the stringbuf is accessed concurrently,
though.

Thanks,
Ludo'.





reply via email to

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