From: Austin Clements Date: Thu, 3 Dec 2020 18:53:41 +0000 (-0500) Subject: doc/go1.16: update runtime and compiler sections X-Git-Tag: go1.16beta1~95 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4eb7ceba067cf4f3851f2eaf63c9929386594adf;p=gostls13.git doc/go1.16: update runtime and compiler sections This resolves all TODOs for the runtime and compiler and mentions several other changes. For #40700. Fixes #42892. Fixes #42894. Change-Id: I18d14cfe572baf679ecf8b0a4e82c4b866da5a04 Reviewed-on: https://go-review.googlesource.com/c/go/+/275176 Trust: Austin Clements Reviewed-by: Matthew Dempsky --- diff --git a/doc/go1.16.html b/doc/go1.16.html index f3bc2fb4d0..462f86fe09 100644 --- a/doc/go1.16.html +++ b/doc/go1.16.html @@ -286,6 +286,17 @@ Do not send CLs removing the interior tags from such phrases. See the package documentation for more details.

+

+ Setting the GODEBUG environment variable + to inittrace=1 now causes the runtime to emit a single + line to standard error for each package init, + summarizing its execution time and memory allocation. This trace can + be used to find bottlenecks or regressions in Go startup + performance. + The GODEBUG< + documentation describes the format. +

+

On Linux, the runtime now defaults to releasing memory to the operating system promptly (using MADV_DONTNEED), rather @@ -298,10 +309,19 @@ Do not send CLs removing the interior tags from such phrases. variable.

+

+ The race detector's model for channel operations now more precisely + follows the Go memory model. As a result, it + may report now races that it previously missed. +

+

Compiler

-

- TODO +

+ The compiler can now inline functions with + non-labeled for loops, method values, and type + switches. The inliner can also detect more indirect calls where + inlining is possible.

Linker

@@ -762,22 +782,6 @@ Do not send CLs removing the interior tags from such phrases. -
runtime
-
-

- TODO: https://golang.org/cl/37222: make stack traces of endless recursion print only top and bottom 50 -

- -

- TODO: https://golang.org/cl/242258: add 24 byte allocation size class -

- -

- TODO: https://golang.org/cl/254659: implement GODEBUG=inittrace=1 support -

-
-
-
runtime/debug

@@ -804,12 +808,22 @@ Do not send CLs removing the interior tags from such phrases.

syscall
+

+ NewCallback + and + NewCallbackCDecl + now correctly support callback functions with multiple + sub-uintptr-sized arguments in a row. This may + require changing uses of these functions to eliminate manual + padding between small arguments. +

+

- SysProcAttr on Windows has a new NoInheritHandles field that disables inheriting handles when creating a new process. + SysProcAttr on Windows has a new NoInheritHandles field that disables inheriting handles when creating a new process.

- DLLError on Windows now has an Unwrap function for unwrapping its underlying error. + DLLError on Windows now has an Unwrap function for unwrapping its underlying error.