go:internals:notes_by_mc
Table of Contents
Notes by MC
Links
-
extern register
-
- other notes, probably related
- blog entry on cgo callbacks, dated 24.04.2010.
- CL 834045 - "Library support for cgo export".
- introduces
startcgocallback(),endcgocallback()inruntime/proc.c,cgocallback()inruntime/cgocall.c,runcgocallback()inruntime/386/asm.s. - (supposedly) related golang-nuts announcement post: "cgo callbacks"
- CL 1696051 - "runtime: implementation of callback functions for windows" - not accepted yet
Source files
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.goc- see also:
goc2c.c,Makefile
runtime/proc.ctracebackothers(…),entersyscall(…)
runtime/cgocall.ccgocall(…),cgocallback(…)
runtime/runtime.hM,G,m,g
Various quotes etc.
- The number of goroutines actively running is the number of
Mstructures that are running. Look atruntime·schedfor various useful counts and lists. (link) - To find the goroutines that exist, whether or not they are running, start at
runtime·allgand walk through thealllink field. Don't count the ones whose status field== Gdead. (link)
go/internals/notes_by_mc.txt · Last modified: by 127.0.0.1
