On Mon, Aug 12, 2002 at 09:48:56PM +0100, Nicholas Clark wrote: > This is a case of a temporary allocated value being only in a CPU register?
Not in this case. The link to the hash structure from the PMC is not established, which prevents the custom mark routine in the PMC from identifying the buffer in question. Another way of fixing this is to change new_hash to accept a pointer to the PMC's ->data pointer so it can initialize this before doing any further allocation. > But I believe that we still need to check for pointers in the CPU registers, > because on a register rich CPU is is not impossible that something has the > only pointer to an in use value still only in a CPU register. Yes. This is definitely necessary. We also need to flush register windows on platforms like SPARC, IA-64. -- Jason