User Tools

Site Tools


go:internals:notes_by_mc

Notes by MC

Source files

  • runtime/windows/thread.c
    • syscall(…)
    • stdcall(…)
    • newosproc(…)
    • get_proc_addr(…), get_proc_addr2(…)
  • runtime/windows/sys.s
    • stdcall_raw(…)
    • get_kernel_module(…)
  • runtime/386/asm.h
    • get_tls(register)
  • runtime/windows/syscall.goc
    • see also: goc2c.c, Makefile
  • runtime/proc.c
    • tracebackothers(…), entersyscall(…)
  • runtime/cgocall.c
    • cgocall(…), cgocallback(…)
  • runtime/runtime.h
    • M, G, m, g

Various quotes etc.

  • The number of goroutines actively running is the number of M structures that are running. Look at runtime·sched for various useful counts and lists. (link)
  • To find the goroutines that exist, whether or not they are running, start at runtime·allg and walk through the alllink field. Don't count the ones whose status field == Gdead. (link)
go/internals/notes_by_mc.txt · Last modified: 2019/03/04 11:38 by fgm