<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go, branch json-isValidNumber-before</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=json-isValidNumber-before</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=json-isValidNumber-before'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2023-01-26T10:15:35Z</updated>
<entry>
<title>crypto/rand, internal/syscall/unix: add support for getrandom on NetBSD ≥ 10.0</title>
<updated>2023-01-26T10:15:35Z</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2023-01-25T15:19:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=4df10fba1687a6d4f51d7238a403f8f2298f6a16'/>
<id>urn:sha1:4df10fba1687a6d4f51d7238a403f8f2298f6a16</id>
<content type='text'>
The getrandom syscall was added to NetBSD in version 10.0, see
https://man.netbsd.org/NetBSD-10.0-STABLE/getrandom.2

Change-Id: I2714c1040791f7f4728be8d869058a38cbd93d4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/463123
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
Reviewed-by: Benny Siegert &lt;bsiegert@gmail.com&gt;
</content>
</entry>
<entry>
<title>runtime: use explicit NOFRAME on darwin/amd64</title>
<updated>2023-01-26T07:17:26Z</updated>
<author>
<name>qmuntal</name>
<email>quimmuntal@gmail.com</email>
</author>
<published>2023-01-02T14:54:44Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=cea70301e2283986aadf2e4e621a3b5b2a790254'/>
<id>urn:sha1:cea70301e2283986aadf2e4e621a3b5b2a790254</id>
<content type='text'>
This CL marks some darwin assembly functions as NOFRAME to avoid relying
on the implicit amd64 NOFRAME heuristic, where NOSPLIT functions
without stack were also marked as NOFRAME.

Change-Id: I797f3909bcf7f7aad304e4ede820c884231e54f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/460235
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Run-TryBot: Cherry Mui &lt;cherryyz@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Matthew Dempsky &lt;mdempsky@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/go/internal/vcs: fix outdated comment</title>
<updated>2023-01-26T01:06:22Z</updated>
<author>
<name>Cameron Bedard</name>
<email>cam.bedardca@gmail.com</email>
</author>
<published>2023-01-26T01:05:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=89de906aa20b18f801b1c44abc03f298ae850954'/>
<id>urn:sha1:89de906aa20b18f801b1c44abc03f298ae850954</id>
<content type='text'>
Function was was replaced in https://go.dev/cl/12143.

Fixes #57718

Change-Id: I56ff9390af9ae31803805fa27d2c08b5e1d842e1
GitHub-Last-Rev: b8c9dbccbc0b412fd7833d4df9d347953798b17b
GitHub-Pull-Request: golang/go#57767
Reviewed-on: https://go-review.googlesource.com/c/go/+/461610
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Auto-Submit: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Run-TryBot: Bryan Mills &lt;bcmills@google.com&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>net/http: keep sensitive headers on redirects to the same host</title>
<updated>2023-01-26T00:52:05Z</updated>
<author>
<name>Gustavo Falco</name>
<email>comfortablynumb84@gmail.com</email>
</author>
<published>2022-12-11T02:39:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=451106921fbcbbae37769db582aea52bf8f728e6'/>
<id>urn:sha1:451106921fbcbbae37769db582aea52bf8f728e6</id>
<content type='text'>
Preserve sensitive headers on a redirect to a different port of the same host.

Fixes #35104

Change-Id: I5ab57c414ce92a70e688ee684b9ff02fb062b3c6
GitHub-Last-Rev: 8d53e71e2243c141d70d27a503d0f7e6dee64c3c
GitHub-Pull-Request: golang/go#54539
Reviewed-on: https://go-review.googlesource.com/c/go/+/424935
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Run-TryBot: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/compile: change some unreachable code paths into Fatalf</title>
<updated>2023-01-26T00:29:56Z</updated>
<author>
<name>Matthew Dempsky</name>
<email>mdempsky@google.com</email>
</author>
<published>2022-12-02T00:33:59Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=de9bffb5f12c4985d8369c39e158fe946f369e82'/>
<id>urn:sha1:de9bffb5f12c4985d8369c39e158fe946f369e82</id>
<content type='text'>
Now that GOEXPERIMENT=nounified is removed, we can assume InlineCall
and HaveInlineBody will always be overridden with the unified
frontend's implementations. Similarly, we can assume expandDecl will
never be called.

This CL changes the code paths into Fatalfs, so subsequent CLs can
remove all the unreachable code.

Updates #57410.

Change-Id: I2a0c3edb32916c30dd63c4dce4f1bd6f18e07468
Reviewed-on: https://go-review.googlesource.com/c/go/+/458618
Auto-Submit: Matthew Dempsky &lt;mdempsky@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Keith Randall &lt;khr@google.com&gt;
Run-TryBot: Matthew Dempsky &lt;mdempsky@google.com&gt;
Reviewed-by: Keith Randall &lt;khr@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/compile: remove -d=typecheckinl flag</title>
<updated>2023-01-26T00:28:48Z</updated>
<author>
<name>Matthew Dempsky</name>
<email>mdempsky@google.com</email>
</author>
<published>2022-12-02T00:43:05Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=532e34dd383549cdb415bc3e09b70d23f280524e'/>
<id>urn:sha1:532e34dd383549cdb415bc3e09b70d23f280524e</id>
<content type='text'>
This flag forced the compiler to eagerly type check all available
inline function bodies, which presumably was useful in the early days
of implementing inlining support. However, it shouldn't have any
significance with the unified frontend, since the same code paths are
used for constructing normal function bodies as for inlining.

Updates #57410.

Change-Id: I6842cf86bcd0fbf22ac336f2fc0b7b8fe14bccca
Reviewed-on: https://go-review.googlesource.com/c/go/+/458617
Reviewed-by: Keith Randall &lt;khr@golang.org&gt;
Run-TryBot: Matthew Dempsky &lt;mdempsky@google.com&gt;
Reviewed-by: Keith Randall &lt;khr@google.com&gt;
Auto-Submit: Matthew Dempsky &lt;mdempsky@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/compile/internal/pkginit: remove dependency on typecheck.Resolve</title>
<updated>2023-01-26T00:28:25Z</updated>
<author>
<name>Matthew Dempsky</name>
<email>mdempsky@google.com</email>
</author>
<published>2022-12-20T20:00:36Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=6d4101ea68477bf1d762f7466523de0b95bec0ca'/>
<id>urn:sha1:6d4101ea68477bf1d762f7466523de0b95bec0ca</id>
<content type='text'>
The use of typecheck.Resolve was previously necessary to interoperate
with the non-unified frontend, because it hooked into iimport. It's no
longer necessary with unified IR, where we can just lookup the
".inittask" symbol and access Def directly.

Updates #57410.

Change-Id: I73bdfd53f65988ececd2b777743cd8b591a6db48
Reviewed-on: https://go-review.googlesource.com/c/go/+/458616
Auto-Submit: Matthew Dempsky &lt;mdempsky@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Keith Randall &lt;khr@google.com&gt;
Run-TryBot: Matthew Dempsky &lt;mdempsky@google.com&gt;
Reviewed-by: Keith Randall &lt;khr@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/compile: improve register overwrite decision for resultInArg0 ops</title>
<updated>2023-01-26T00:07:40Z</updated>
<author>
<name>Keith Randall</name>
<email>khr@golang.org</email>
</author>
<published>2023-01-05T21:02:44Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=4a0e84a1be52d9a57574de0421d9aa38522a0b71'/>
<id>urn:sha1:4a0e84a1be52d9a57574de0421d9aa38522a0b71</id>
<content type='text'>
When we're compiling a resultInArg0 op, we need to clobber the
register containing the input value. So we first make a register copy
of the input value. We can then clobber either of the two registers
the value is in and still have the original input value in a register
for future uses.

Before this CL, we always clobbered the original, not the copy.
But that's not always the right decision - if the original is already
in a specific register that it needs to be in later (typically, a
return value register), clobber the copy instead.

This optimization can remove a mov instruction. It saves 1376 bytes
of instructions in cmd/go.

Redo of CL 460656, reverted at CL 463475, with a fix for s390x.

The new code just ensures that the copied value is in a register
which is a valid input register for the instruction.

Change-Id: Id570b8a60a6d2da9090de80a90b6bb0266e9e38a
Reviewed-on: https://go-review.googlesource.com/c/go/+/463221
Auto-Submit: Keith Randall &lt;khr@golang.org&gt;
Run-TryBot: Keith Randall &lt;khr@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Keith Randall &lt;khr@google.com&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
</content>
</entry>
<entry>
<title>runtime: delete unused cbctxts variable on windows assembly</title>
<updated>2023-01-25T22:05:14Z</updated>
<author>
<name>qmuntal</name>
<email>quimmuntal@gmail.com</email>
</author>
<published>2023-01-25T07:56:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=2c7856087a7b3864284f908c0a091fd5af419d03'/>
<id>urn:sha1:2c7856087a7b3864284f908c0a091fd5af419d03</id>
<content type='text'>
runtime·cbctxts has been unused since CL 258938, but it was left over.

Change-Id: I374ad26e668a36994e41f5d17593b33090bdc644
Reviewed-on: https://go-review.googlesource.com/c/go/+/463119
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
Run-TryBot: Quim Muntal &lt;quimmuntal@gmail.com&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
</content>
</entry>
<entry>
<title>cmd: remove GOEXPERIMENT=nounified knob</title>
<updated>2023-01-25T21:16:32Z</updated>
<author>
<name>Matthew Dempsky</name>
<email>mdempsky@google.com</email>
</author>
<published>2022-12-02T00:14:11Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=4f467f10820e78add23bf5ddeb1de521aa6f8864'/>
<id>urn:sha1:4f467f10820e78add23bf5ddeb1de521aa6f8864</id>
<content type='text'>
This CL removes the GOEXPERIMENT=nounified knob, and any conditional
statements that depend on that knob. Further CLs to remove unreachable
code follow this one.

Updates #57410.

Change-Id: I39c147e1a83601c73f8316a001705778fee64a91
Reviewed-on: https://go-review.googlesource.com/c/go/+/458615
Run-TryBot: Matthew Dempsky &lt;mdempsky@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
</content>
</entry>
</feed>
