extern registerstartcgocallback(), endcgocallback() in runtime/proc.c, cgocallback() in runtime/cgocall.c, runcgocallback() in runtime/386/asm.s.runtime/windows/thread.csyscall(…)stdcall(…)newosproc(…)get_proc_addr(…), get_proc_addr2(…)runtime/windows/sys.sstdcall_raw(…)get_kernel_module(…)runtime/386/asm.hget_tls(register)runtime/windows/syscall.gocgoc2c.c, Makefileruntime/proc.ctracebackothers(…), entersyscall(…)runtime/cgocall.ccgocall(…), cgocallback(…)runtime/runtime.hM, G, m, gM structures that are running. Look at runtime·sched for various useful counts and lists. (link)runtime·allg and walk through the alllink field. Don't count the ones whose status field == Gdead. (link)