<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/bufio/bufio_test.go, branch main</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2026-04-14T14:51:40Z</updated>
<entry>
<title>bufio: realign struct Reader</title>
<updated>2026-04-14T14:51:40Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2023-09-16T16:17:48Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=5410be8b93277d2b1d0f701bfa64a4930b31615e'/>
<id>urn:sha1:5410be8b93277d2b1d0f701bfa64a4930b31615e</id>
<content type='text'>
This reduce the Reader allocation size from 72 to 40 bytes and
Writer allocation size from 64 to 40 bytes.
</content>
</entry>
<entry>
<title>bufio: don't do empty Write at start of WriteTo</title>
<updated>2025-02-07T01:08:54Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2025-01-27T05:52:58Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=290ec2d92bca6472fdabce51fc331b3bcaa7129d'/>
<id>urn:sha1:290ec2d92bca6472fdabce51fc331b3bcaa7129d</id>
<content type='text'>
The empty Write will cause the wrong thing to happen when using
io.Copy to copy to a package-based stream.

Fixes #71424

Change-Id: I046a27539447182692ac76a8bdd422327345dd8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/644535
Reviewed-by: Keith Randall &lt;khr@golang.org&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Keith Randall &lt;khr@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@golang.org&gt;
Reviewed-by: Mauri de Souza Meneguzzo &lt;mauri870@gmail.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
<entry>
<title>bufio: add example for ReadFrom and remove unused code</title>
<updated>2024-11-01T21:52:12Z</updated>
<author>
<name>cuishuang</name>
<email>imcusg@gmail.com</email>
</author>
<published>2024-11-01T09:55:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=2fd2718f6b64000fa25e0c5d1ee48aa1426d5a6f'/>
<id>urn:sha1:2fd2718f6b64000fa25e0c5d1ee48aa1426d5a6f</id>
<content type='text'>
Change-Id: Ia4fbb436ca573b1820f2b4d06d2332f588334768
Reviewed-on: https://go-review.googlesource.com/c/go/+/624357
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>all: skip and fix various tests with -asan and -msan</title>
<updated>2024-10-28T21:04:51Z</updated>
<author>
<name>Michael Anthony Knyszek</name>
<email>mknyszek@google.com</email>
</author>
<published>2024-10-28T17:23:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=579eb79f62d92db872d730f5fe954ca2b7dce8ae'/>
<id>urn:sha1:579eb79f62d92db872d730f5fe954ca2b7dce8ae</id>
<content type='text'>
First, skip all the allocation count tests.

In some cases this aligns with existing skips for -race, but in others
we've got new issues. These are debug modes, so some performance loss is
expected, and this is clearly no worse than today where the tests fail.

Next, skip internal linking and static linking tests for msan and asan.

With asan we get an explicit failure that neither are supported by the C
and/or Go compilers. With msan, we only get the Go compiler telling us
internal linking is unavailable. With static linking, we segfault
instead. Filed #70080 to track that.

Next, skip some malloc tests with asan that don't quite work because of
the redzone.

This is because of some sizeclass assumptions that get broken with the
redzone and the fact that the tiny allocator is effectively disabled
(again, due to the redzone).

Next, skip some runtime/pprof tests with asan, because of extra
allocations.

Next, skip some malloc tests with asan that also fail because of extra
allocations.

Next, fix up memstats accounting for arenas when asan is enabled. There
is a bug where more is added to the stats than subtracted. This also
simplifies the accounting a little.

Next, skip race tests with msan or asan enabled; they're mutually
incompatible.

Fixes #70054.
Fixes #64256.
Fixes #64257.
For #70079.
For #70080.

Change-Id: I99c02a0b9d621e44f1f918b307aa4a4944c3ec60
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-asan-clang15,gotip-linux-amd64-msan-clang15
Reviewed-on: https://go-review.googlesource.com/c/go/+/622855
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
TryBot-Bypass: Michael Knyszek &lt;mknyszek@google.com&gt;
</content>
</entry>
<entry>
<title>all: omit unnecessary 0 in slice expression</title>
<updated>2024-09-03T20:55:15Z</updated>
<author>
<name>nlwkobe30</name>
<email>nlwkobe30@gmail.com</email>
</author>
<published>2024-08-30T19:05:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=7cd0a4be5cdbb84142ec330daba6087eece48341'/>
<id>urn:sha1:7cd0a4be5cdbb84142ec330daba6087eece48341</id>
<content type='text'>
All changes are related to the code, except for the comments in src/regexp/syntax/parse.go and src/slices/slices.go.

Change-Id: I73c5d3c54099749b62210aa7f3182c5eb84bb6a6
GitHub-Last-Rev: 794aa9b0539811d00e1cd42be1e8d9fe9afe0281
GitHub-Pull-Request: golang/go#69170
Reviewed-on: https://go-review.googlesource.com/c/go/+/609678
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>bufio: permit r.Reset(r) without infinite recursion</title>
<updated>2023-02-10T18:56:01Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2023-02-09T03:50:06Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=851f6fd61425c810959c7ab51e6dc86f8a63c970'/>
<id>urn:sha1:851f6fd61425c810959c7ab51e6dc86f8a63c970</id>
<content type='text'>
This can happen in reasonable code because NewReader(r) can return r,
if r is already a Reader.

Similarly for Writer.

Fixes #58423

Change-Id: Iff9d9265410bee68fbaeb7175369847bd737eb2c
Reviewed-on: https://go-review.googlesource.com/c/go/+/466815
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>bufio: use strings.Builder</title>
<updated>2022-09-29T20:47:53Z</updated>
<author>
<name>cuiweixie</name>
<email>cuiweixie@gmail.com</email>
</author>
<published>2022-09-28T13:17:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e3ac2152f28f74c085d305d764a54d14d46eaaa9'/>
<id>urn:sha1:e3ac2152f28f74c085d305d764a54d14d46eaaa9</id>
<content type='text'>
Change-Id: Ia8d6cea75b32c8839837c1bb1e13cde9b236abdd
Reviewed-on: https://go-review.googlesource.com/c/go/+/435939
Run-TryBot: xie cui &lt;523516579@qq.com&gt;
Reviewed-by: Robert Griesemer &lt;gri@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Auto-Submit: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>bufio: use strings.Builder</title>
<updated>2022-09-06T15:44:28Z</updated>
<author>
<name>cuiweixie</name>
<email>cuiweixie@gmail.com</email>
</author>
<published>2022-09-04T09:26:48Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=32f68b5ab7b4f2a5a87497816260d9b671f6c74e'/>
<id>urn:sha1:32f68b5ab7b4f2a5a87497816260d9b671f6c74e</id>
<content type='text'>
Change-Id: Ief82f12a5c48c46165c28140997d5fc83700c758
Reviewed-on: https://go-review.googlesource.com/c/go/+/428256
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Robert Griesemer &lt;gri@google.com&gt;
Reviewed-by: 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;
</content>
</entry>
<entry>
<title>bufio: implement large write forwarding in Writer.WriteString</title>
<updated>2022-04-21T23:41:03Z</updated>
<author>
<name>Carlo Alberto Ferraris</name>
<email>cafxx@strayorange.com</email>
</author>
<published>2022-01-21T05:21:38Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=21e1ffe7bc7793a8f1c1fca4dfa32f1f3f70681c'/>
<id>urn:sha1:21e1ffe7bc7793a8f1c1fca4dfa32f1f3f70681c</id>
<content type='text'>
Currently bufio.Writer implements forwarding to the underlying Writer
for large writes via Write, but it does not do the same for large
writes via WriteString.

If the underlying Writer is also a StringWriter, use the same "large
writes" logic also in WriteString while taking care to only check
once per call to WriteString whether the underlying Writer implements
StringWriter.

Change-Id: Id81901c07b035936816b9e41b1f5688e699ee8e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/380074
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>all: fix typo in comment</title>
<updated>2021-12-15T19:56:22Z</updated>
<author>
<name>ichxxx</name>
<email>chen@ichxxx.cn</email>
</author>
<published>2021-12-15T18:52:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=567b177949d0819169c10ba6a07ff60554eb5285'/>
<id>urn:sha1:567b177949d0819169c10ba6a07ff60554eb5285</id>
<content type='text'>
Remove duplicate 'the'

Change-Id: I3ed81c8d9c488662387e45580a3bcd462448ba44
GitHub-Last-Rev: 86443993b9b58c6fce4e09e283604c32ccc44cec
GitHub-Pull-Request: golang/go#50017
Reviewed-on: https://go-review.googlesource.com/c/go/+/372394
Reviewed-by: Robert Griesemer &lt;gri@golang.org&gt;
Run-TryBot: Robert Griesemer &lt;gri@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
</feed>
