[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
C Meeting
- To: <mark>
- Subject: C Meeting
- From: Ravi Pandya <ravi>
- Date: Tue, 5 Dec 89 23:20:14 PST
- Cc: <bobp>, <xanatech>, <bobp>, <joel>
- In-reply-to: <MarkS.Miller'smessageofTue>,48 PST <8912060708.AA15491@xanadu>
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.
--ravi