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: 2020/11/23 17:23 by 127.0.0.1