<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/os/os_windows_test.go, branch fix-runtime-test-GOMAXPROCS</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2025-07-15T15:20:17Z</updated>
<entry>
<title>os: remove useless error check</title>
<updated>2025-07-15T15:20:17Z</updated>
<author>
<name>guoguangwu</name>
<email>guoguangwug@gmail.com</email>
</author>
<published>2024-03-12T07:37:52Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=d826bf4d7440ee07f865e5852638b5a2468687ff'/>
<id>urn:sha1:d826bf4d7440ee07f865e5852638b5a2468687ff</id>
<content type='text'>
Change-Id: Ifeb5fecc6e28b79ac03e7dc2ce9531fe5eed3097
GitHub-Last-Rev: 087cf95965920c96befad5adb9e481bdf913d50a
GitHub-Pull-Request: golang/go#66260
Reviewed-on: https://go-review.googlesource.com/c/go/+/570895
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: Sean Liao &lt;sean@liao.dev&gt;
Auto-Submit: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Reviewed-by: Florian Lehner &lt;lehner.florian86@gmail.com&gt;
Reviewed-by: Rob Pike &lt;r@golang.org&gt;
</content>
</entry>
<entry>
<title>os,internal/poll: disassociate handle from IOCP in File.Fd</title>
<updated>2025-04-24T13:51:09Z</updated>
<author>
<name>qmuntal</name>
<email>quimmuntal@gmail.com</email>
</author>
<published>2025-04-10T15:45:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=8a8f506516e1210c9ca3a352d76bd1d570c407fd'/>
<id>urn:sha1:8a8f506516e1210c9ca3a352d76bd1d570c407fd</id>
<content type='text'>
Go 1.25 will gain support for overlapped IO on handles passed to
os.NewFile thanks to CL 662236. It was previously not possible to add
an overlapped handle to the Go runtime's IO completion port (IOCP),
and now happens on the first call the an IO method.

This means that there is code that relies on the fact that File.Fd
returns a handle that can always be associated with a custom IOCP.
That wouldn't be the case anymore, as a handle can only be associated
with one IOCP at a time and it must be explicitly disassociated.

To fix this breaking change, File.Fd will disassociate the handle
from the Go runtime IOCP before returning it. It is then not necessary
to defer the association until the first IO method is called, which
was recently added in CL 661955 to support this same use case, but
in a more complex and unreliable way.

Updates #19098.

Cq-Include-Trybots: luci.golang.try:gotip-windows-amd64-race,gotip-windows-amd64-longtest,gotip-windows-arm64
Change-Id: Id8a7e04d35057047c61d1733bad5bf45494b2c28
Reviewed-on: https://go-review.googlesource.com/c/go/+/664455
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Alex Brainman &lt;alex.brainman@gmail.com&gt;
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>os: handle trailing slashes in os.RemoveDir on Windows</title>
<updated>2025-04-15T18:17:39Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2025-04-10T20:58:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=79b809afb325ae266497e21597f126a3e98a1ef7'/>
<id>urn:sha1:79b809afb325ae266497e21597f126a3e98a1ef7</id>
<content type='text'>
CL 661575 inadvertently caused os.RemoveDir on Windows to
fail when given a path with a trailing / or \, due to the
splitPath function not correctly stripping trailing
separators.

Fixes #73317

Change-Id: I21977b94bb08ff1e563de6f5f16a4bdf5024a15e
Reviewed-on: https://go-review.googlesource.com/c/go/+/664715
Auto-Submit: Damien Neil &lt;dneil@google.com&gt;
TryBot-Bypass: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
Reviewed-by: Alan Donovan &lt;adonovan@google.com&gt;
</content>
</entry>
<entry>
<title>os,internal/poll: support I/O on overlapped files not added to the poller</title>
<updated>2025-04-14T12:40:53Z</updated>
<author>
<name>qmuntal</name>
<email>quimmuntal@gmail.com</email>
</author>
<published>2025-04-10T14:03:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f414dfe4f5049c2c8998b4e6b90dee7fca0c225b'/>
<id>urn:sha1:f414dfe4f5049c2c8998b4e6b90dee7fca0c225b</id>
<content type='text'>
This fixes the support for I/O on overlapped files that are not added to
the poller. Note that CL 661795 already added support for that, but it
really only worked for pipes, not for plain files.

Additionally, this CL also makes this kind of I/O operations to not
notify the external poller to avoid confusing it.

Updates #15388.

Change-Id: I15c6ea74f3a87960aef0986598077b6eab9b9c99
Reviewed-on: https://go-review.googlesource.com/c/go/+/664415
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
Reviewed-by: Alex Brainman &lt;alex.brainman@gmail.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Auto-Submit: Quim Muntal &lt;quimmuntal@gmail.com&gt;
</content>
</entry>
<entry>
<title>os: clean-up NewFile tests</title>
<updated>2025-04-09T20:06:17Z</updated>
<author>
<name>qmuntal</name>
<email>quimmuntal@gmail.com</email>
</author>
<published>2025-04-08T10:12:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=7007dfcd0c32c1be83c921b0859dd48464c7c5aa'/>
<id>urn:sha1:7007dfcd0c32c1be83c921b0859dd48464c7c5aa</id>
<content type='text'>
This CL removes some unnecessary code and duplicated NewFile tests
cases.

It also simplifies TestPipeCanceled by removing the need for using
SetReadDeadline. Using CancelIoEx instead of CancelIo makes the cancel
operations to finish almost instantly. The latter could take more than
20s to finish if called from a thread different from the one that
called ReadFile.

Change-Id: I9033cbcad277666bc2aec89b3e5a3ef529da2cd8
Reviewed-on: https://go-review.googlesource.com/c/go/+/663755
Reviewed-by: Alex Brainman &lt;alex.brainman@gmail.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>os: support overlapped IO with NewFile</title>
<updated>2025-04-04T21:00:21Z</updated>
<author>
<name>qmuntal</name>
<email>quimmuntal@gmail.com</email>
</author>
<published>2025-04-02T10:47:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=7e60bdd7aada492c2f4a492d92439040974af2c5'/>
<id>urn:sha1:7e60bdd7aada492c2f4a492d92439040974af2c5</id>
<content type='text'>
The runtime/poll package has just gained support for overlapped IO,
see CL 660595 and CL 661955. The only remaining piece was making it
visible to user code via os.NewFile.

Some of the poll.FD.Init responsibility has been moved to os.NewFile
to avoid unnecessary syscalls for the common case of using os.Open,
os.Create, os.OpenFile, and os.Pipe, where we know that the file
is not opened for overlapped IO.

Some internal/poll tests have been moved to the os package to exercise
public APIs rather than internal ones.

The os.NewFile function definition has been moved into an OS-agnostic
file to avoid having duplicated documentation and ensure that the
caller is aware of its behavior across all platforms.

Closes #19098.

Cq-Include-Trybots: luci.golang.try:gotip-windows-amd64-longtest,gotip-windows-amd64-race,gotip-windows-arm64
Change-Id: If043f8b34d588cd4b481777203107ed92d660fd9
Reviewed-on: https://go-review.googlesource.com/c/go/+/662236
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
Auto-Submit: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
<entry>
<title>os,internal/poll: support I/O on overlapped handles not added to the poller</title>
<updated>2025-03-31T19:01:49Z</updated>
<author>
<name>qmuntal</name>
<email>quimmuntal@gmail.com</email>
</author>
<published>2025-03-31T09:43:12Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b9cbb65384f6bebd58f7a8354759b8c7b1bbb13f'/>
<id>urn:sha1:b9cbb65384f6bebd58f7a8354759b8c7b1bbb13f</id>
<content type='text'>
Calling syscall.ReadFile and syscall.WriteFile on overlapped handles
always need to be passed a valid *syscall.Overlapped structure, even if
the handle is not added to a IOCP (like the Go runtime poller). Else,
the syscall will fail with ERROR_INVALID_PARAMETER.

We also need to handle ERROR_IO_PENDING errors when the overlapped
handle is not added to the poller, in which case we need to block until
the operation completes.

Previous CLs already added support for overlapped handles to the poller,
mostly to keep track of the file offset independently of the file
pointer (which is not supported for overlapped handles).

Fixed #15388.
Updates #19098.

Change-Id: I2103ab892a37d0e326752ae8c2771a43c13ba42e
Reviewed-on: https://go-review.googlesource.com/c/go/+/661795
Auto-Submit: Quim Muntal &lt;quimmuntal@gmail.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
<entry>
<title>Revert "os: check for valid Windows path when creating files"</title>
<updated>2024-11-19T17:26:40Z</updated>
<author>
<name>George Adams</name>
<email>georgeadams1995@gmail.com</email>
</author>
<published>2024-11-19T10:05:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=5deea4c2425fd8aa6dee642c63a1bc43e090d04b'/>
<id>urn:sha1:5deea4c2425fd8aa6dee642c63a1bc43e090d04b</id>
<content type='text'>
This reverts commit CL 618496.

Reason for revert: https://github.com/golang/go/issues/54040#issuecomment-2485151973

Change-Id: I3bf27f7fdd475a005cb6aa190994153504e96fb5
Reviewed-on: https://go-review.googlesource.com/c/go/+/629595
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Quim Muntal &lt;quimmuntal@gmail.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
<entry>
<title>os: fix findOneDriveDir to expand REG_SZ registry values</title>
<updated>2024-10-31T19:21:20Z</updated>
<author>
<name>George Adams</name>
<email>georgeadams1995@gmail.com</email>
</author>
<published>2024-10-30T11:07:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=325ee1ce3dae4879b00fb06059e8d33d49d6ba11'/>
<id>urn:sha1:325ee1ce3dae4879b00fb06059e8d33d49d6ba11</id>
<content type='text'>
On some Windows systems the SOFTWARE\Microsoft\OneDrive registry key is REG_SZ rather than REG_EXPAND_SZ.

Change-Id: I3ccb8771377a73456f48da1b5cfae668130b3f7b
Reviewed-on: https://go-review.googlesource.com/c/go/+/623515
Reviewed-by: Quim Muntal &lt;quimmuntal@gmail.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
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;
</content>
</entry>
<entry>
<title>os: check for valid Windows path when creating files</title>
<updated>2024-10-29T15:25:26Z</updated>
<author>
<name>George Adams</name>
<email>georgeadams1995@gmail.com</email>
</author>
<published>2024-10-08T09:52:54Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b813465c4faeb3054a2689481b0b5f9562b8b077'/>
<id>urn:sha1:b813465c4faeb3054a2689481b0b5f9562b8b077</id>
<content type='text'>
Checks for a valid Windows path by ensuring the path doesn't end with trailing spaces or periods.

Fixes #54040.

Cq-Include-Trybots: luci.golang.try:gotip-windows-arm64
Change-Id: I266f79963c821f8cc474097d3e57c5645ad996fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/618496
Reviewed-by: Quim Muntal &lt;quimmuntal@gmail.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Alex Brainman &lt;alex.brainman@gmail.com&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
</content>
</entry>
</feed>
