tinygo/src/runtime/gc_globals_conservative.go

12 строки
357 Б
Go

// +build gc.conservative gc.extalloc
// +build baremetal
package runtime
// 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)
}