[LLVMdev] reload of pointers after GC
Scott Graham
scott.llvm at h4ck3r.net
Tue Sep 23 10:51:15 PDT 2008
> Are you reusing the same SSA variables, or reloading from the gcroot?
> Copying collectors require that you reload before each use (or, more
> specifically, between each call that could invoke the collector). e.g.,
Ah, of course. I keep thinking of the SSA variables as C-type
variables, rather than values. Thanks (yet again!) Gordon.
> Of particular danger is that naive code generation for something like
> f(obj, g()) would retain an SSA value for obj over the call to g().
Yeah, that would be my problem. It would be quite fair to describe my
code generation as naive. :)
scott
More information about the llvm-dev
mailing list