mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 20:13:40 +00:00
13 lines
357 B
Go
13 lines
357 B
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)
|
|
}
|