mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-20 20:39:06 +00:00
Add custom-gc stub for ReadMemStats
This commit is contained in:
committed by
Ron Evans
parent
df0f5ae1da
commit
47ca1c037b
@@ -20,6 +20,7 @@ package runtime
|
|||||||
// - func free(ptr unsafe.Pointer)
|
// - func free(ptr unsafe.Pointer)
|
||||||
// - func markRoots(start, end uintptr)
|
// - func markRoots(start, end uintptr)
|
||||||
// - func GC()
|
// - func GC()
|
||||||
|
// - func ReadMemStats(ms *runtime.MemStats)
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// In addition, if targeting wasi, the following functions should be exported for interoperability
|
// In addition, if targeting wasi, the following functions should be exported for interoperability
|
||||||
@@ -50,6 +51,9 @@ func markRoots(start, end uintptr)
|
|||||||
// GC is called to explicitly run garbage collection.
|
// GC is called to explicitly run garbage collection.
|
||||||
func GC()
|
func GC()
|
||||||
|
|
||||||
|
// ReadMemStats populates m with memory statistics.
|
||||||
|
func ReadMemStats(ms *MemStats)
|
||||||
|
|
||||||
func setHeapEnd(newHeapEnd uintptr) {
|
func setHeapEnd(newHeapEnd uintptr) {
|
||||||
// Heap is in custom GC so ignore for when called from wasm initialization.
|
// Heap is in custom GC so ignore for when called from wasm initialization.
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user