1 //go:build gc.leaking && !baremetal && !nintendoswitch 2 3 package runtime 4 5 import ( 6 "unsafe" 7 ) 8 9 //go:inline 10 func zero_new_alloc(ptr unsafe.Pointer, size uintptr) { 11 // Wasm linear memory is initialized to zero by default, so 12 // there's no need to do anything. This is also the case for 13 // fresh-allocated memory from an mmap() system call. 14 } 15