<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go, branch json-isValidNumber</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=json-isValidNumber</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=json-isValidNumber'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2023-02-18T09:15:58Z</updated>
<entry>
<title>encoding/json: optimize isValidNumber function</title>
<updated>2023-02-18T09:15:58Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2022-08-26T14:48:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=02b962186be4ed9597df5fc526ef85b2e66cf55b'/>
<id>urn:sha1:02b962186be4ed9597df5fc526ef85b2e66cf55b</id>
<content type='text'>
We use an index instead of reslicing the string because reslicing a string
updates both the data and length fields instead of just the one index
variable.

Benchmark result,

name             old time/op    new time/op    delta
NumberIsValid-8  19.0ns ± 0%    14.5ns ± 1%  -23.70%  (p=0.008 n=5+5)

name             old alloc/op   new alloc/op   delta
NumberIsValid-8   0.00B          0.00B          ~     (all equal)

name             old allocs/op  new allocs/op  delta
NumberIsValid-8    0.00           0.00          ~     (all equal)

Change-Id: I4698c5db134998f83ff47fb3add6a04ba6ec3aa0
</content>
</entry>
<entry>
<title>runtime/cgo: restore correct build tags for linux/mips*</title>
<updated>2023-02-18T05:22:26Z</updated>
<author>
<name>Joel Sing</name>
<email>joel@sing.id.au</email>
</author>
<published>2023-02-17T18:45:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=169203f3ee022abf66647abc99fd483fd10f9a54'/>
<id>urn:sha1:169203f3ee022abf66647abc99fd483fd10f9a54</id>
<content type='text'>
The linux build tags were incorrectly removed from these files by CL 460538.
Restore the correct build tags so that they are only included in builds
for linux/mips* platforms.

Change-Id: I21d8802b0252688d8e2228cf904b47d90b253485
Reviewed-on: https://go-review.googlesource.com/c/go/+/469175
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Run-TryBot: Joel Sing &lt;joel@sing.id.au&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>net/http: remove five second timeout from TestTransportClosesBodyOnError</title>
<updated>2023-02-17T23:54:47Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2023-01-26T21:16:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=7e5906a57d92e8afe8a6bb3f5d4c19d0e920ab9a'/>
<id>urn:sha1:7e5906a57d92e8afe8a6bb3f5d4c19d0e920ab9a</id>
<content type='text'>
Wait forever and let the test time out with a stack trace if the
expected response doesn't happen.

Fixes #57990

Change-Id: I835def63db113752cdd06e03e258cb10d63a6a25
Reviewed-on: https://go-review.googlesource.com/c/go/+/463222
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/compile: move raw writes out of write barrier code</title>
<updated>2023-02-17T22:21:22Z</updated>
<author>
<name>Keith Randall</name>
<email>khr@golang.org</email>
</author>
<published>2022-11-01T21:18:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=d49719b1f75ea745937bdbc09ae5927c5378780b'/>
<id>urn:sha1:d49719b1f75ea745937bdbc09ae5927c5378780b</id>
<content type='text'>
Previously, the write barrier calls themselves did the actual
writes to memory. Instead, move those writes out to a common location
that both the wb-enabled and wb-disabled code paths share.

This enables us to optimize the write barrier path without having
to worry about performing the actual writes.

Change-Id: Ia71ab651908ec124cc33141afb52e4ca19733ac6
Reviewed-on: https://go-review.googlesource.com/c/go/+/447780
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
TryBot-Bypass: Keith Randall &lt;khr@golang.org&gt;
Run-TryBot: Keith Randall &lt;khr@golang.org&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
</content>
</entry>
<entry>
<title>runtime: remove the restriction that write barrier ptrs come in pairs</title>
<updated>2023-02-17T22:19:26Z</updated>
<author>
<name>Keith Randall</name>
<email>khr@golang.org</email>
</author>
<published>2022-10-26T00:58:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=d3daeb5267b626db36adf2f39c36f6caf94447e3'/>
<id>urn:sha1:d3daeb5267b626db36adf2f39c36f6caf94447e3</id>
<content type='text'>
Future CLs will remove the invariant that pointers are always put in
the write barrier in pairs.

The behavior of the assembly code changes a bit, where instead of writing
the pointers unconditionally and then checking for overflow, check for
overflow first and then write the pointers.

Also changed the write barrier flush function to not take the src/dst
as arguments.

Change-Id: I2ef708038367b7b82ea67cbaf505a1d5904c775c
Reviewed-on: https://go-review.googlesource.com/c/go/+/447779
Run-TryBot: Keith Randall &lt;khr@golang.org&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
TryBot-Bypass: Keith Randall &lt;khr@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/api: add API checks for freebsd/riscv64</title>
<updated>2023-02-17T21:23:32Z</updated>
<author>
<name>Dmitri Goutnik</name>
<email>dgoutnik@gmail.com</email>
</author>
<published>2023-02-17T16:44:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=209df389c215d9a1eee15ce1c1e4d82f43e026db'/>
<id>urn:sha1:209df389c215d9a1eee15ce1c1e4d82f43e026db</id>
<content type='text'>
The freebsd/riscv64 port was added in go1.20, make cmd/api aware of it and
backfill API files.

For #58582

Change-Id: I242b161cdb6221c8f60a1868c6435be26fca0078
Reviewed-on: https://go-review.googlesource.com/c/go/+/469135
Run-TryBot: Dmitri Goutnik &lt;dgoutnik@gmail.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/cgo: include seed string with -frandom-seed for lto</title>
<updated>2023-02-17T20:39:34Z</updated>
<author>
<name>Morten Linderud</name>
<email>morten@linderud.pw</email>
</author>
<published>2023-02-16T14:37:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=37e893b1bd7bb57b169224486e1f3f5eef264340'/>
<id>urn:sha1:37e893b1bd7bb57b169224486e1f3f5eef264340</id>
<content type='text'>
cgo is built with -flto the symbols in runtime/cgo is going to include random numbers which would make builds unreproducible.

Settings -frandom-seeds ensures this is consistent across builds, and to ensure we always use a reproducible seed across builds we use the actionID as the seed string.

runtime/cgo built with "-frandom-seed=OFEc9OKoUMJwh3-5yFCH" would output the following:

    $ strings --all --bytes=8 $WORK/b055/_pkg_.a | grep "gnu.lto_.profile"
    .gnu.lto_.profile.8403a797
    .gnu.lto_.profile.8403a797
    .gnu.lto_.profile.8403a797
    .gnu.lto_.profile.8403a797
    .gnu.lto_.profile.8403a797
    .gnu.lto_.profile.8403a797
    .gnu.lto_.profile.8403a797
    .gnu.lto_.profile.8403a797
    .gnu.lto_.profile.8403a797
    .gnu.lto_.profile.8403a797
    .gnu.lto_.profile.8403a797
    .gnu.lto_.profile.8403a797

Change-Id: I3c2d261a94f23c8227a922da9a7f81660905fd71
GitHub-Last-Rev: cec5162316d33d8f652948706ce0a5f8c6794a6e
GitHub-Pull-Request: golang/go#58561
Reviewed-on: https://go-review.googlesource.com/c/go/+/468835
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Bryan Mills &lt;bcmills@google.com&gt;
Auto-Submit: Bryan Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/api: add API checks for freebsd/arm64</title>
<updated>2023-02-17T20:31:46Z</updated>
<author>
<name>Dmitri Goutnik</name>
<email>dgoutnik@gmail.com</email>
</author>
<published>2023-02-17T16:19:49Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=990501e725cebcd7c1d6e01013db312198d2babc'/>
<id>urn:sha1:990501e725cebcd7c1d6e01013db312198d2babc</id>
<content type='text'>
The freebsd/arm64 port was added in go1.14, make cmd/api aware of it and
backfill API files.

For #58582

Change-Id: I8b25c6cf5a66611d90d225762b257679a4abface
Reviewed-on: https://go-review.googlesource.com/c/go/+/469115
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Dmitri Goutnik &lt;dgoutnik@gmail.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>test: add regress test for #58572</title>
<updated>2023-02-17T03:59:20Z</updated>
<author>
<name>Matthew Dempsky</name>
<email>mdempsky@google.com</email>
</author>
<published>2023-02-16T23:53:42Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=9f834a559c9ed6cdf883e29b36e21e5f956df74f'/>
<id>urn:sha1:9f834a559c9ed6cdf883e29b36e21e5f956df74f</id>
<content type='text'>
Fixes #58572.

Change-Id: I75fa432afefc3e036ed9a6a9002a29d7b23105ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/468880
Reviewed-by: Keith Randall &lt;khr@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Cuong Manh Le &lt;cuong.manhle.vn@gmail.com&gt;
Run-TryBot: Matthew Dempsky &lt;mdempsky@google.com&gt;
Auto-Submit: Matthew Dempsky &lt;mdempsky@google.com&gt;
</content>
</entry>
<entry>
<title>Revert "cmd/compile: use ONAME node directly from generated hash func"</title>
<updated>2023-02-17T03:58:59Z</updated>
<author>
<name>Matthew Dempsky</name>
<email>mdempsky@google.com</email>
</author>
<published>2023-02-16T23:54:25Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=95be547e0a7d284bc8bbad27f0904d042144ea98'/>
<id>urn:sha1:95be547e0a7d284bc8bbad27f0904d042144ea98</id>
<content type='text'>
This reverts commit 25f5d9d4a253cb880bff909ebbdc05c8941c4a48.

Causes ICE on valid code.

Updates #58572.

Change-Id: Ib276c87d9b0362bbd2a760ac2a242f82d4e20400
Reviewed-on: https://go-review.googlesource.com/c/go/+/468879
Reviewed-by: Cuong Manh Le &lt;cuong.manhle.vn@gmail.com&gt;
Run-TryBot: Matthew Dempsky &lt;mdempsky@google.com&gt;
Auto-Submit: Matthew Dempsky &lt;mdempsky@google.com&gt;
Reviewed-by: Keith Randall &lt;khr@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
</content>
</entry>
</feed>
