mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
runtime: allow custom-gc SetFinalizer and clarify KeepAlive
This commit is contained in:
@@ -85,6 +85,10 @@ func GC() {
|
||||
// No-op.
|
||||
}
|
||||
|
||||
func SetFinalizer(obj interface{}, finalizer interface{}) {
|
||||
// No-op.
|
||||
}
|
||||
|
||||
func initHeap() {
|
||||
// preinit() may have moved heapStart; reset heapptr
|
||||
heapptr = heapStart
|
||||
|
||||
Reference in New Issue
Block a user