]> Cypherpunks repositories - gostls13.git/commit
runtime, syscall: use pointer types on wasmimport functions
authorCherry Mui <cherryyz@google.com>
Sat, 9 Nov 2024 04:10:41 +0000 (23:10 -0500)
committerCherry Mui <cherryyz@google.com>
Mon, 11 Nov 2024 21:33:33 +0000 (21:33 +0000)
commit73ac82f99046a8b0b0b76f767f4b2e25ef6989ca
treebce1fc5989a44700f8c34e263f208adcd766b727
parent6051da46d01e967b55d088530fcbe84e8deb0e7a
runtime, syscall: use pointer types on wasmimport functions

Now that we support pointer types on wasmimport functions, use
them, instead of unsafe.Pointer. This removes unsafe conversions.
There is still one unsafe.Pointer argument left. It is actually a
*Stat_t, which is an exported type with an int field, which is not
allowed as a wasmimport field type. We probably cannot change it
at this point.

Updates #66984.

Change-Id: I445c70b356c3877a5604bee67d19d99a538c682e
Reviewed-on: https://go-review.googlesource.com/c/go/+/627059
Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/go/build/deps_test.go
src/internal/syscall/unix/at_wasip1.go
src/runtime/netpoll_wasip1.go
src/runtime/os_wasip1.go
src/syscall/fs_wasip1.go
src/syscall/net_wasip1.go
src/syscall/syscall_wasip1.go