[Cbe-oss-dev] [PATCH] libspe2: Initialise object-id on isolated program load
Jeremy Kerr
jk at ozlabs.org
Tue Aug 14 23:17:24 EST 2007
Asayama-san,
> (or we should save only the object ID).
.. which is a pointer to the program, so we'd need to do that anyway.
Also, the program handle needs to be valid during the isolated load, so
we have the same lifetime concerns there.
I think some statement in the spec would be good, preferrably with input
from the gdb people. How about something along the lines of:
"The spe_program_handle_t pointer must be valid until the program has
been completely loaded to the SPE. In the case of isolated-mode
contexts, the program must be valid until spe_context_run() returns.
For non-isolated contexts, the program only needs to be valid while
spe_program_load() is executing."
Cheers,
Jeremy
More information about the cbe-oss-dev
mailing list