mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 23:13:40 +00:00
compiler,runtime: implement a portable conservative GC
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// +build gc.conservative
|
||||
// +build cortexm
|
||||
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user