We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df0f5ae commit 47ca1c0Copy full SHA for 47ca1c0
src/runtime/gc_custom.go
@@ -20,6 +20,7 @@ package runtime
20
// - func free(ptr unsafe.Pointer)
21
// - func markRoots(start, end uintptr)
22
// - func GC()
23
+// - func ReadMemStats(ms *runtime.MemStats)
24
//
25
26
// In addition, if targeting wasi, the following functions should be exported for interoperability
@@ -50,6 +51,9 @@ func markRoots(start, end uintptr)
50
51
// GC is called to explicitly run garbage collection.
52
func GC()
53
54
+// ReadMemStats populates m with memory statistics.
55
+func ReadMemStats(ms *MemStats)
56
+
57
func setHeapEnd(newHeapEnd uintptr) {
58
// Heap is in custom GC so ignore for when called from wasm initialization.
59
}
0 commit comments