[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Weak Vectors Patch
From: |
Clinton Ebadi |
Subject: |
Weak Vectors Patch |
Date: |
Thu, 01 Apr 2010 13:18:27 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Attached is a patch that should improve weak vectors and prevent
`vector-ref' from segfaulting on them after a GC.
The root of the problem was that weak vectors were being allocated as
containing no pointers *and* disappearing links were not being
registered for initial elements. If you, however, created an empty weak
vector and then `vector-set!' the elements things were fine.
I'm not sure that weak vectors should have their allocated memory marked
as containing no pointers, but it seems to work so I left that alone in
case there was some magic going on that I didn't quite grok.
CC any replies to me; I'm not subscribed to bug-guile.
0001-Fix-weak-vectors.patch
Description: Text Data
--
Mike: I WAS NOT MICROWAVED.
- Weak Vectors Patch,
Clinton Ebadi <=