From 666448abebed5c165b90814a0f4146a8ae084fb0 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 5 Jun 2020 09:46:21 -0400 Subject: [PATCH] doc/go1.15: rationalize runtime sections Use the "Core library -> runtime" section for changes that affect the runtime package API and use the top-level "Runtime" section for package-independent behavior changes. Also, move the one change that's really about os (and net) into the "os" package section and reword it to be more accurate. Updates #37419. Change-Id: I32896b039f29ac67308badd0d0b36e8c6e39f64f Reviewed-on: https://go-review.googlesource.com/c/go/+/236718 Reviewed-by: Michael Knyszek --- doc/go1.15.html | 72 ++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 37 deletions(-) diff --git a/doc/go1.15.html b/doc/go1.15.html index 19f124ae00..34ce3e58ce 100644 --- a/doc/go1.15.html +++ b/doc/go1.15.html @@ -218,10 +218,24 @@ Do not send CLs removing the interior tags from such phrases.

Runtime

-

- Go now retries system calls that return EINTR. This - became more common in Go 1.14 with the addition of asynchronous - preemption, but is now handled transparently. +

+ If panic is invoked with a value whose type is derived from any + of: bool, complex64, complex128, float32, float64, + int, int8, int16, int32, int64, string, + uint, uint8, uint16, uint32, uint64, uintptr, + then the value will be printed, instead of just its address. + Previously, this was only true for values of exactly these types. +

+ +

+ On a Unix system, if the kill command + or kill system call is used to send + a SIGSEGV, SIGBUS, + or SIGFPE signal to a Go program, and if the signal + is not being handled via + os/signal.Notify, + the Go program will now reliably crash with a stack trace. + In earlier releases the behavior was unpredictable.

@@ -229,8 +243,14 @@ Do not send CLs removing the interior tags from such phrases. counts, and has lower worst-case latency.

-

-TODO +

+ Converting a small integer value into an interface value no longer + causes allocation. +

+ +

+ Non-blocking receives on closed channels now perform as well as + non-blocking receives on open channels.

Compiler

@@ -540,6 +560,14 @@ TODO which Timeout returns true although a deadline has not been exceeded.

+ +

+ Packages os and net now automatically + retry system calls that fail with EINTR. Previously + this led to spurious failures, which became more common in Go + 1.14 with the addition of asynchronous preemption. Now this is + handled transparently. +

@@ -559,7 +587,7 @@ TODO
reflect

- Package reflect now disallows accessing methods of all + Package reflect now disallows accessing methods of all non-exported fields, whereas previously it allowed accessing those of non-exported, embedded fields. Code that relies on the previous behavior should be updated to instead access the @@ -580,26 +608,6 @@ TODO

runtime
-

- If panic is invoked with a value whose type is derived from any - of: bool, complex64, complex128, float32, float64, - int, int8, int16, int32, int64, string, - uint, uint8, uint16, uint32, uint64, uintptr, - then the value will be printed, instead of just its address. - Previously, this was only true for values of exactly these types. -

- -

- On a Unix system, if the kill command - or kill system call is used to send - a SIGSEGV, SIGBUS, - or SIGFPE signal to a Go program, and if the signal - is not being handled via - os/signal.Notify, - the Go program will now reliably crash with a stack trace. - In earlier releases the behavior was unpredictable. -

-

Several functions, including ReadMemStats @@ -607,16 +615,6 @@ TODO GoroutineProfile, no longer block if a garbage collection is in progress.

- -

- Converting small integer values into an interface value no - longer causes allocation. -

- -

- Non-blocking receives on closed channels now perform as well as - non-blocking receives on open channels. -

-- 2.50.0