User Tools

Site Tools


go:internals:get_tls

Table of Contents

get tls

get_tls® is an assembly macro for retrieving the location (address) of Thread-local storage (TLS is thus an acronym). It is defined in automatically generated (during Go building) file asm.h.

For GOOS=386, get_tls® resolves to: MOVL 0x2c(FS), r

See also

go/internals/get_tls.txt · Last modified: 2019/03/04 13:00 by fgm