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.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 atruntime·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 thealllink field
. Don't count the ones whose status field== Gdead
. (link)
go/internals/notes_by_mc.txt · Last modified: 2020/11/23 17:23 by 127.0.0.1