A question about moving GC
Unknown W. Brackets
Unknown_member at pathlink.com
Wed Jun 7 15:11:52 PDT 2006
Of course, how foolish of me - so there's no worry about the garbage collector
killing that in a threaded program either. Duh.
-[Unknown]
In article <e679ot$7e3$1 at digitaldaemon.com>, Walter Bright says...
>Stewart Gordon wrote:
>> Would it remain pinned indefinitely, until the C function exits, or
>> until the program explicitly unpins it by some means?
>
>It's pinned because it's on the stack, just like pointers on the stack
>for your D functions. The gc doesn't know the difference.
More information about the Digitalmars-d-learn
mailing list