]> Cypherpunks repositories - gostls13.git/commit
internal/runtime/syscall/windows: factor out code from runtime
authorqmuntal <quimmuntal@gmail.com>
Mon, 21 Jul 2025 12:39:04 +0000 (14:39 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Mon, 28 Jul 2025 16:47:09 +0000 (09:47 -0700)
commitc7ed3a1c5a152d0e610bbbf104dba30099e6942a
treee89ef2d6b5a0bcc10f4174f8e67b88e559febc8e
parente81eac19d30f373496cd1d08ce2f89c0469a21fd
internal/runtime/syscall/windows: factor out code from runtime

Factor out the code related to doing calls using the Windows stdcall
calling convention into a separate package. This will allow us to
reuse it in other low-level packages that can't depend on syscall.

Updates #51087.

Cq-Include-Trybots: luci.golang.try:gotip-windows-arm64,gotip-windows-amd64-longtest,gotip-solaris-amd64
Change-Id: I68640b07091183b50da6bef17406c10a397896e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/689156
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
22 files changed:
src/cmd/internal/objabi/pkgspecial.go
src/go/build/deps_test.go
src/internal/coverage/pkid.go
src/internal/runtime/syscall/windows/asm_windows_386.s [new file with mode: 0644]
src/internal/runtime/syscall/windows/asm_windows_amd64.s [new file with mode: 0644]
src/internal/runtime/syscall/windows/asm_windows_arm.s [new file with mode: 0644]
src/internal/runtime/syscall/windows/asm_windows_arm64.s [new file with mode: 0644]
src/internal/runtime/syscall/windows/syscall_windows.go [new file with mode: 0644]
src/runtime/cgocall.go
src/runtime/export_windows_test.go
src/runtime/os_aix.go
src/runtime/os_solaris.go
src/runtime/os_windows.go
src/runtime/runtime2.go
src/runtime/sys_aix_ppc64.s
src/runtime/sys_solaris_amd64.s
src/runtime/sys_windows_386.s
src/runtime/sys_windows_amd64.s
src/runtime/sys_windows_arm.s
src/runtime/sys_windows_arm64.s
src/runtime/syscall_windows.go
src/runtime/syscall_windows_test.go