User Tools

Site Tools


This is an old revision of the document!

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.1551700840.txt.gz · Last modified: 2020/11/23 17:23 (external edit)