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

C Meeting

When Hugh and I were discussing this yesterday, we came up with one
other issue we need to deal with in enrolling pointers. If the user
dumps a set of pointers into a C array, then we need to ensure that
the objects they point to remain non-garbage. Hugh's elegant solution
is to enroll an Immu version of whatever container was unpacked, and
tuck a pointer to that Immu in the C struct that goes back as a blind
pointer. Then when the user calls our routine to deallocate the block
of memory, we expel the corresponding Immu. This does the correct
thing in that it only holds onto the objects that were in the table at
the time it was exported.