Files
tinygo/src/runtime/gc_globals.go
T
2022-12-19 23:20:11 +01:00

15 lines
462 B
Go

//go:build gc.conservative && (baremetal || tinygo.wasm)
package runtime
// This file implements markGlobals for all the files that don't have a more
// specific implementation.
// markGlobals marks all globals, which are reachable by definition.
//
// This implementation marks all globals conservatively and assumes it can use
// linker-defined symbols for the start and end of the .data section.
func markGlobals() {
markRoots(globalsStart, globalsEnd)
}