]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: add wrappers for sys* functions and consolidate docs
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 15 Mar 2022 00:23:26 +0000 (00:23 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 31 Mar 2022 20:02:55 +0000 (20:02 +0000)
commitf990b0f1e80cf6152219b4d3f9a397899e8d6d40
tree022a41c828dbfeef63248342c6a3d08b94fa7dc0
parent4a56ba1c453927256f231a8bcef316bb4b3aa68a
runtime: add wrappers for sys* functions and consolidate docs

This change lifts all non-platform-specific code out of sys* functions
for each platform up into wrappers, and moves documentation about the OS
virtual memory abstraction layer from malloc.go to mem.go, which
contains those wrappers.

Change-Id: Ie803e4447403eaafc508b34b53a1a47d6cee9388
Reviewed-on: https://go-review.googlesource.com/c/go/+/393398
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
src/runtime/malloc.go
src/runtime/mem.go [new file with mode: 0644]
src/runtime/mem_aix.go
src/runtime/mem_bsd.go
src/runtime/mem_darwin.go
src/runtime/mem_js.go
src/runtime/mem_linux.go
src/runtime/mem_plan9.go
src/runtime/mem_windows.go