From: Michael Pratt Date: Thu, 2 Jun 2022 20:56:41 +0000 (-0400) Subject: doc/go1.19: add release notes for runtime packages X-Git-Tag: go1.19beta1~74 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=54a2f4b6763b6e9c37ac86329af1b8d8f2e51b58;p=gostls13.git doc/go1.19: add release notes for runtime packages This documents most of the changes in runtime packages, which the major exception of GC changes, which will be documented in a future CL. For #51400 Change-Id: Ibcf501e1b4f7caa3397db6b9136daec07aac5a65 Reviewed-on: https://go-review.googlesource.com/c/go/+/410117 Run-TryBot: Michael Pratt TryBot-Result: Gopher Robot Reviewed-by: Michael Knyszek --- diff --git a/doc/go1.19.html b/doc/go1.19.html index 7eba7b535f..b7d7a3466f 100644 --- a/doc/go1.19.html +++ b/doc/go1.19.html @@ -84,9 +84,41 @@ Do not send CLs removing the interior tags from such phrases.

TODO: complete this section, or delete if not needed

+ +

+ The runtime will now allocate initial goroutine stacks based on the historic + average stack usage of goroutines. This avoids some of the early stack growth + and copying needed in the average case in exchange for at most 2x wasted + space on below-average goroutines. +

+ +

+ On Unix operating systems, Go programs that import package + os now automatically increase the open file limit + (RLIMIT_NOFILE) to the maximum allowed value. Programs that need + a lower limit (for compatibility with select, for example) can + set the limit back as needed, or lower the hard limit prior to starting the + Go program. +

+ +

+ Unrecoverable fatal errors (such as concurrent map writes, or unlock of + unlocked mutexes) now print a simpler traceback excluding runtime metadata + (equivalent to a fatal panic) unless GOTRACEBACK=system or + crash. Runtime-internal fatal error tracebacks always include + full metadata regardless of the value of GOTRACEBACK +

+ +

+ Support for debugger-injected function calls has been added on ARM64, + enabling users to call functions from their binary in an interactive + debugging session when using a debugger that is updated to make use of this + functionality. +

+

Compiler

-

+

The compiler now uses a jump table to implement large integer and string switch statements. @@ -362,6 +394,44 @@ Do not send CLs removing the interior tags from such phrases. +

runtime/metrics
+
+

+ The new /sched/gomaxprocs:threads metric reports the current + runtime.GOMAXPROCS value. +

+ +

+ The new /cgo/go-to-c-calls:calls metric reports the total + number of calls made from Go to C. This metric is identical to the runtime.NumCgoCall + function. +

+ +

+ The new /gc/limiter/last-enabled:gc-cycle metric reports the + last GC cycle when the GC CPU limiter was enabled. +

+
+
+ +
runtime/pprof
+
+

+ Stop-the-world pause times have been significantly reduced when + collecting goroutine profiles, reducing the overall latency impact to the + application. +

+ +

+ MaxRSS is now reported in heap profiles for all Unix + operating systems (it was previously only reported for + GOOS=android, darwin, ios, and + linux). +

+
+
+
runtime/race

@@ -379,6 +449,10 @@ Do not send CLs removing the interior tags from such phrases.

+ +

+ The race detector is now supported on S390. +