Definition at line 144 of file finalize.cpp.
145{
146#ifdef MEMDEBUG
147 GC_REGISTER_FINALIZER(M2_debug_to_outer(
G),
remove_res, 0, 0, 0);
148#else
149 GC_REGISTER_FINALIZER(
G ,
remove_res,
nullptr,
nullptr,
nullptr);
150#endif
153 fprintf(
154 stderr, "\n -- registering res %d at %p\n", nfinalized.load(),
156}
void remove_res(void *p, void *cd)
static volatile std::atomic< int > res_nfinalized
References G, M2_gbTrace, remove_res(), and res_nfinalized.
Referenced by ResolutionComputation::choose_res().