<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go, branch go1.18.2</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=go1.18.2</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=go1.18.2'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2022-05-10T16:47:15Z</updated>
<entry>
<title>[release-branch.go1.18] go1.18.2</title>
<updated>2022-05-10T16:47:15Z</updated>
<author>
<name>Heschi Kreinick</name>
<email>heschi@google.com</email>
</author>
<published>2022-05-10T15:35:59Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=8ed0e51b5e5cc50985444f39dc56c55e4fa3bcf9'/>
<id>urn:sha1:8ed0e51b5e5cc50985444f39dc56c55e4fa3bcf9</id>
<content type='text'>
Change-Id: I2f9a3e6819d10190117973262568aaacf47435e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/405477
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Heschi Kreinick &lt;heschi@google.com&gt;
Reviewed-by: David Chase &lt;drchase@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.18] go/types, types2: use a type lookup by identity in method lookup</title>
<updated>2022-05-10T15:00:03Z</updated>
<author>
<name>Robert Findley</name>
<email>rfindley@google.com</email>
</author>
<published>2022-05-04T21:41:39Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=020fc475017b3f86068052efc6dd5b2350ec03fe'/>
<id>urn:sha1:020fc475017b3f86068052efc6dd5b2350ec03fe</id>
<content type='text'>
Named type identity is no longer canonical. For correctness, named types
need to be compared with types.Identical. Our method set algorithm was
not doing this: it was using a map to de-duplicate named types, relying
on their pointer identity. As a result it was possible to get incorrect
results or even infinite recursion, as encountered in #52715.

To fix this, look up types by identity in NewMethodSet and
LookupFieldOrMethod. This does a linear search among types with equal
origin. Alternatively we could use a *Context to do a hash lookup, but
in practice we will be considering a small number of types, and so
performance is not a concern and a linear lookup is simpler. This also
means we don't have to rely on our type hash being perfect, which we
don't depend on elsewhere.

Also add more tests for NewMethodSet and LookupFieldOrMethod involving
generics.

Fixes #52804

Change-Id: I04dfeff54347bc3544d95a30224c640ef448e9b7
Reviewed-on: https://go-review.googlesource.com/c/go/+/404099
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Robert Griesemer &lt;gri@google.com&gt;
Run-TryBot: Robert Findley &lt;rfindley@google.com&gt;
(cherry picked from commit f088f4962e628992833444df7486d392715ea73d)
Reviewed-on: https://go-review.googlesource.com/c/go/+/405117
Reviewed-by: Alan Donovan &lt;adonovan@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.18] net: skip TestDialCancel on darwin-arm64</title>
<updated>2022-05-09T21:42:12Z</updated>
<author>
<name>Heschi Kreinick</name>
<email>heschi@google.com</email>
</author>
<published>2022-04-26T16:34:35Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b2b4b9e015998bd1a0b9ab3d5a5d5138951a3bf5'/>
<id>urn:sha1:b2b4b9e015998bd1a0b9ab3d5a5d5138951a3bf5</id>
<content type='text'>
We're turning up Macs in a network environment that clashes with this
test. I don't think it's critical to get it working, so skip it.

For #49149.
Fixes #52706.

Change-Id: I925e3ecc5356c4cefd208bdcff3d98021215d0b4
Reviewed-on: https://go-review.googlesource.com/c/go/+/402181
Reviewed-by: Alex Rakoczy &lt;alex@golang.org&gt;
Run-TryBot: Heschi Kreinick &lt;heschi@google.com&gt;
Auto-Submit: Heschi Kreinick &lt;heschi@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
(cherry picked from commit 06b0a655a1f46abab2e3c173259ad184b557dd89)
Reviewed-on: https://go-review.googlesource.com/c/go/+/405294
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Run-TryBot: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
Reviewed-by: Heschi Kreinick &lt;heschi@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.18] net/http/httptest: fix race in Server.Close</title>
<updated>2022-05-09T20:28:28Z</updated>
<author>
<name>Maisem Ali</name>
<email>maisem@tailscale.com</email>
</author>
<published>2022-03-21T17:43:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=45568433edcea7e7691de93e4de32cbf87d0eeca'/>
<id>urn:sha1:45568433edcea7e7691de93e4de32cbf87d0eeca</id>
<content type='text'>
When run with race detector the test fails without the fix.

For #51799
Fixes #51897

Change-Id: I273adb6d3a2b1e0d606b9c27ab4c6a9aa4aa8064
GitHub-Last-Rev: a5ddd146a2a65f2e817eed5133449c79b3af2562
GitHub-Pull-Request: golang/go#51805
Reviewed-on: https://go-review.googlesource.com/c/go/+/393974
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Trust: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
(cherry picked from commit 1d19cea740a5a044848aaab3dc119f60c947be1d)
Reviewed-on: https://go-review.googlesource.com/c/go/+/401317
Reviewed-by: David Chase &lt;drchase@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.18] go/types: clarify that contexts do not guarantee deduplication</title>
<updated>2022-05-09T20:28:06Z</updated>
<author>
<name>Robert Findley</name>
<email>rfindley@google.com</email>
</author>
<published>2022-03-29T22:30:06Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=6fabc53cae6c3f654f9abe4f833b676c6f7172d3'/>
<id>urn:sha1:6fabc53cae6c3f654f9abe4f833b676c6f7172d3</id>
<content type='text'>
Documentation around the use of types.Context is unclear about whether
contexts guarantee deduplication of identical instances. Add explicit
disclaimers that this is not the case.

Fixes golang/go#52028

Change-Id: I6651587315d3cbf9e8d70a69d3e2ec5cedd00da5
Reviewed-on: https://go-review.googlesource.com/c/go/+/396536
Trust: Robert Findley &lt;rfindley@google.com&gt;
Run-TryBot: Robert Findley &lt;rfindley@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Robert Griesemer &lt;gri@golang.org&gt;
(cherry picked from commit 83327b4ae41cf1ef17fb4df4dc395cf17efc6375)
Reviewed-on: https://go-review.googlesource.com/c/go/+/397674
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.18] cmd/compile: always write fun[0] in incomplete itab</title>
<updated>2022-05-09T20:25:20Z</updated>
<author>
<name>Keith Randall</name>
<email>khr@golang.org</email>
</author>
<published>2022-04-08T15:44:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=2375a6882ee4d4e7566618de1a8c8b45a5dfa3fa'/>
<id>urn:sha1:2375a6882ee4d4e7566618de1a8c8b45a5dfa3fa</id>
<content type='text'>
runtime.getitab need filled fun[0] to identify whether
implemented the interface.

Fixes #51738
Fixes #52244

Change-Id: I0173b98f4e1b45e3a0183a5b60229d289140d1e6
Reviewed-on: https://go-review.googlesource.com/c/go/+/399058
Reviewed-by: Keith Randall &lt;khr@golang.org&gt;
Run-TryBot: Keith Randall &lt;khr@golang.org&gt;
Auto-Submit: Keith Randall &lt;khr@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: David Chase &lt;drchase@google.com&gt;
Reviewed-on: https://go-review.googlesource.com/c/go/+/399974
Reviewed-by: Austin Clements &lt;austin@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.18] runtime: align m.procid to 8 bytes on 32-bit systems</title>
<updated>2022-05-09T20:24:44Z</updated>
<author>
<name>Michael Pratt</name>
<email>mpratt@google.com</email>
</author>
<published>2022-04-12T16:12:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=4f4542479d27161d70b22557c52f182c0332ac7b'/>
<id>urn:sha1:4f4542479d27161d70b22557c52f182c0332ac7b</id>
<content type='text'>
https://go-review.googlesource.com/c/go/+/383434 started using
atomic Load64 on this field, which breaks 32 bit platforms which
require 64-bit alignment of uint64s that are passed to atomic operations.

Not sure why this doesn't break everywhere, but I saw it break on
my laptop during all.bash.

For #51776.
Fixes #52305.

Change-Id: Ida27b23068b3cc7208fce3c97b69a464ccf68209
Reviewed-on: https://go-review.googlesource.com/c/go/+/399754
Run-TryBot: Keith Randall &lt;khr@golang.org&gt;
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Keith Randall &lt;khr@google.com&gt;
(cherry-picked from commit ea7e3e3c0f561d1115d647e3e24ca61d0382e1ac)
Reviewed-on: https://go-review.googlesource.com/c/go/+/399954
Run-TryBot: Michael Pratt &lt;mpratt@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.18] cmd/compile: disable rewrite loop detector for deadcode-only changes</title>
<updated>2022-05-09T20:24:02Z</updated>
<author>
<name>Keith Randall</name>
<email>khr@golang.org</email>
</author>
<published>2022-03-14T22:17:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=13bda0ebfb00a84bfb422985c62914f2bcb62a40'/>
<id>urn:sha1:13bda0ebfb00a84bfb422985c62914f2bcb62a40</id>
<content type='text'>
We're guaranteed we won't infinite loop on deadcode-only changes,
because each change converts valid -&gt; invalid, and there are only a
finite number of valid values.

The loops this test is looking for are those generated by rule
applications, so it isn't useful to check for loops when rules aren't
involved.

Fixes #52366

Change-Id: Idf1abeab9d47baafddc3a1197d5064faaf07ef78
Reviewed-on: https://go-review.googlesource.com/c/go/+/392760
Trust: 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: Josh Bleecher Snyder &lt;josharian@gmail.com&gt;
Trust: Josh Bleecher Snyder &lt;josharian@gmail.com&gt;
(cherry picked from commit 15728ce950eea43d6f1b9fb29819d006071e843a)
Reviewed-on: https://go-review.googlesource.com/c/go/+/400514
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Reviewed-by: Austin Clements &lt;austin@google.com&gt;
Reviewed-by: David Chase &lt;drchase@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.18] reflect: ensure map keys match key type in MapIndex and SetMapIndex</title>
<updated>2022-05-09T20:23:04Z</updated>
<author>
<name>Dan Kortschak</name>
<email>dan@kortschak.io</email>
</author>
<published>2022-04-16T13:15:06Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=02878959960b6d09639841324693b3ab92d5f486'/>
<id>urn:sha1:02878959960b6d09639841324693b3ab92d5f486</id>
<content type='text'>
name                          old time/op    new time/op    delta
Map/StringKeys/MapIndex-8           2.36µs ± 5%    2.55µs ±11%  +7.98%  (p=0.006 n=10+9)
Map/StringKeys/SetMapIndex-8        4.86µs ± 7%    4.77µs ± 1%    ~     (p=0.211 n=10+9)
Map/StringKindKeys/MapIndex-8       2.29µs ± 3%    2.28µs ± 4%    ~     (p=0.631 n=10+10)
Map/StringKindKeys/SetMapIndex-8    4.44µs ± 3%    4.61µs ± 1%  +3.78%  (p=0.000 n=10+10)
Map/Uint64Keys/MapIndex-8           3.42µs ± 9%    3.11µs ± 2%  -9.20%  (p=0.000 n=10+9)
Map/Uint64Keys/SetMapIndex-8        5.17µs ± 3%    5.00µs ± 1%  -3.23%  (p=0.000 n=9+10)

For #52379
Fixes #52386

Change-Id: I545c71ea3145280828ca4186aad036a6c02016ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/400635
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Reviewed-by: Joseph Tsai &lt;joetsai@digital-static.net&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
(cherry picked from commit 11a650bb4aabfd7998b61df3ac33f61831d7abff)
Reviewed-on: https://go-review.googlesource.com/c/go/+/404000
Reviewed-by: David Chase &lt;drchase@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.18] syscall: check correct group in Faccessat</title>
<updated>2022-05-09T20:17:54Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2022-04-12T20:38:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=c0599c5b781de023974519194df6b0c4ebb0adff'/>
<id>urn:sha1:c0599c5b781de023974519194df6b0c4ebb0adff</id>
<content type='text'>
The Faccessat call checks the user, group, or other permission bits of a
file to see if the calling process can access it. The test to see if the
group permissions should be used was made with the wrong group id, using
the process's group id rather than the file's group id. Fix this to use
the correct group id.

No test since we cannot easily change file permissions when not running
as root and the test is meaningless if running as root.

For #52313
Fixes #52440

Change-Id: I4e2c84754b0af7830b40fd15dedcbc58374d75ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/399539
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
(cherry picked from commit f66925e854e71e0c54b581885380a490d7afa30c)
Reviewed-on: https://go-review.googlesource.com/c/go/+/401079
Auto-Submit: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Tatiana Bradley &lt;tatiana@golang.org&gt;
Run-TryBot: Tatiana Bradley &lt;tatiana@golang.org&gt;
Auto-Submit: Tatiana Bradley &lt;tatiana@golang.org&gt;
Run-TryBot: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
</feed>
