[gambit-list] Scope of safe use of u8-vector that is not ___STILL/___FIXED, in the C world
adam.mlmb at gmail.com
Tue Oct 22 10:50:41 EDT 2019
Should any u8vector and other heap allocated object that is processed in
the C world be ___STILL/___FIXED, or if it's only a c-lambda that does not
store the ___SCMOBJ for future access anywhere, is it OK to pass ordinary
u8vectors and other heap allocated objects to the C world and access them
up to the point of returning the c-lambda -
also of course presuming the c-lambda does not do any Scheme world calls,
including Gambit runtime calls, but only uses ordinary gambit.h-local
accessors e.g. ___U8VECTORREF.
Question arose here https://github.com/vyzo/gerbil/issues/341 .
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gambit-list