> Ideally the closures should be collectable - if the class for which
> they are allocated were collected then the closures should as well,
> but since FFIBucket is static, it would prevent this even if the
> closures were allocated with JvAllocBytes(). It would probably be
> better to allocate the closures with JvAllocBytes and mark them as
> part _Jv_MarkObj when the class is being marked.
I think perhaps you missed the original dicussion. I asked for the
closure to be allocated as an array of bytes so that it could be put
into a weak hash map, rather than adding another field and special
marking code to class Class. RawDataManaged would be perhaps a better
alternative to an array of bytes.