12 строки
357 Б
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)
|
|
}
|