Re: [Gc] Re: Re: Program broken
ivmai at mail.ru
Thu Sep 24 01:56:03 PDT 2009
Hugh <up2dream at gmail.com> wrote:
> thanks. I add Zi option, But the error occurs in my code (not in gc code).
> In my program I defined some global pointers and vars, when it running, in
These ones shouldn't be thread-local.
> some functions I will put pointer 'create with new (GC) XXX' to that global
> Is this right? Do I need use GC_add_roots? And How can I use GC_add_roots?
You don't need GC_add_roots typically (unless you're using GC_clear_roots, GC_no_dls, GC_remove_roots(), GC_exclude_static_roots()) - the static roots are registered automatically.
More information about the Gc