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:
@@ -20,6 +20,7 @@ package runtime
|
||||
// - func free(ptr unsafe.Pointer)
|
||||
// - func markRoots(start, end uintptr)
|
||||
// - func GC()
|
||||
// - func SetFinalizer(obj interface{}, finalizer interface{})
|
||||
// - func ReadMemStats(ms *runtime.MemStats)
|
||||
//
|
||||
//
|
||||
@@ -51,6 +52,9 @@ func markRoots(start, end uintptr)
|
||||
// GC is called to explicitly run garbage collection.
|
||||
func GC()
|
||||
|
||||
// SetFinalizer registers a finalizer.
|
||||
func SetFinalizer(obj interface{}, finalizer interface{})
|
||||
|
||||
// ReadMemStats populates m with memory statistics.
|
||||
func ReadMemStats(ms *MemStats)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user