Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/hack-pad/go
The Go programming language
https://github.com/hack-pad/go
to is an optional pointer to sockaddr, as written in the doc:
https://learn.microsoft.com/en-us/...
Before the change, "SliceCap((*int64)(nil), 1<<62)" returns 1<<62.
That's because "uintptr(c)*si...
The pipes pumped by goroutines can be closed as soon as their
respective goroutines are done.
T...
bd8a5b00fcf71fb711ba8996a880b5b07f7b3634 authored over 2 years ago
Change the childFiles field to a local variable, since it was
populated during Start and (as far...
Deduplicate code for parsing system registers - this matches what is done
in golang.org/x/sys/cp...
Change-Id: I1f21654b50d7b0cd8e1f854efe2724b72f067449
Reviewed-on: https://go-review.googlesource...
using Type.Comparable to simplify the Value.Comparable,
and return true directly when exit the f...
Even though there isn't much point in building cmd/go for js/wasm given
it relies on executing s...
Last use was removed by CL 240607.
Change-Id: Icfe9e477c6035823bd676a2ff28e1ac202dd991e
Reviewe...
Fixes #55845
Change-Id: If30263b7d34829c40e6606846115ec520f351f2c
Reviewed-on: https://go-revie...
Fix up the package test harness to avoid errors of the form
go_test.go:NNN: internal testsuit...
1e91ffc897efb1ed298753c08f086fbc8f725025 authored over 2 years agoThis avoids allocating an overly large slice for corrupt input.
Change the saferio.SliceCap fun...
a0441c7ae3dea57a0553c9ea77e184c34b7da40f authored over 2 years agoFor #55326
Change-Id: I3d0ff7f820f7b2009d1b226abf701b2337fe8cbc
Reviewed-on: https://go-review....
This reverts commit 3dcf6e2c29f533865aad58488b60ae8d819a566e.
Reason for revert: breaks the lon...
e5deb1556b230642d544c451a83cb79f641727a3 authored over 2 years ago
Query parameter smuggling occurs when a proxy's interpretation
of query parameters differs from ...
Use slice-to-array conversions in AddrFromSlice and
(*Addr).UnmarshalBinary. This allows allows ...
For #55326.
Change-Id: Ia3c1124305986dcd49ac769e700055b263cfbd59
Reviewed-on: https://go-review...
Currently, for version errors, types2 adds the helpful hint
(-lang was set to go1.xx; check go....
5d213a3dc764624e3f01d7e957fedc63bfdcfa0f authored over 2 years ago
Updates vet to permit errors with an Unwrap method returning []error
and multiple %w verbs in fm...
CL 426257 changed ioutil.WriteFile to os.WriteFile but didn't add the
corresponding import for p...
Change-Id: I83a62b15c5946cfe61afc53c2c528aa3a62f815e
Reviewed-on: https://go-review.googlesource...
Fixes #52527.
Fixes #55336.
Change-Id: I8f5c521c693e74451a558788909e7e4ad1cc797a
Reviewed-on: h...
A linear search through a list of 22 strings takes ~80ns.
A quick check for 3-4 byte strings red...
Pprof's converter from legacy text format to protobuf format
assumes that if the alloc and inuse...
For PIE binaries, the .gopclntab section doesn't have the usual
name, but .data.rel.ro.gopclntab...
After CL 22425, there're two optimizations for slice expr which are
never applied during walk pa...
cmd/dist can't easily hard-code -buildvcs=false because not all
versions of cmd/go supported for...
Change-Id: Ic4df6a8e198b069a9f3a28710fa40f29bd658b06
GitHub-Last-Rev: 51040eb5e53f4cf0238cb0b787...
Change-Id: I5b063070a17bdeed57e73bfb76125b94268b3bc9
Reviewed-on: https://go-review.googlesource...
Change-Id: I7350a608a198073673fb9b7e9b91dae6f1c861b7
Reviewed-on: https://go-review.googlesource...
These tests are flaky; add some additional logging in hopes
it will aid in debugging.
For #5337...
441223050335590875581275cd538034111f28d8 authored over 2 years ago
RFC 7231 permits HEAD requests to contain a body, although it does
state there are no defined se...
Pull in HTTP/2 fix needed for net/http test case.
f8f703f979 http2: accept HEAD requests with ...
493ebc359029a066d039adf861ea33bec68422b8 authored over 2 years agoFixes #51282
Change-Id: I5b0d68165b727a427bd4a42663b2fa0070ced22f
Reviewed-on: https://go-revie...
Change-Id: I8c0e2b37e7e8cb4db6ad0b456fde7eb908ffbd04
Reviewed-on: https://go-review.googlesource...
Converting from nil slice to zero element array is ok, so explicitly
describe the behavior in th...
This commit adds an ASCII fast path to bytes/strings EqualFold that
roughly doubles performance ...
This is both simpler and more performant.
The need for fmt.fmtC to manually check for utf8.MaxRu...
On Linux a signal sent using tgkill will have si_code == SI_TKILL,
not SI_USER. Treat the two ca...
This reverts commit 4c414c7673af6b2aedee276d2e62cb2910eb19f3.
Reason for revert: breaks ppc64 b...
fec83c8a7d1a3bb5f63366acd55f83ed8782bff0 authored over 2 years ago
When one has a []byte on hand, but desires to call the Parse function,
the conversion from []byt...
Fixes #54973
Change-Id: Ibad9dd124617a1bbc23abd17cbd6e9e9928e3ed9
GitHub-Last-Rev: 1c6affb967ef...
Change-Id: Idd8cee84215e61817a86915160c91242670798af
Reviewed-on: https://go-review.googlesource...
Say "//go:build" instead of "// +build" in the package level godoc
comment.
Change-Id: I4700227...
b5fcb35b3197bc4d444ee0b9ad4ae6c5998864cf authored over 2 years agoReplace custom append functions in the hash functions with the implementation of the encoding/bi...
1eeb257b88e59f2f3ce3cbe0eb80a9f049765853 authored over 2 years agoFor #45557
Change-Id: I56824135d86452603dd4ed4bab0e24c201bb0683
Reviewed-on: https://go-review....
Use "%w" instead of "%v" as format verb for error value in the NextPart
method. This way it will...
This is a follow up of CL 393656 on arm64.
Benchmarks:
name ol...
This CL adds some optimizaion rules:
1, Converts CMP to CMN, or vice versa, when comparing with ...
Change-Id: I87526520b519554ea344288cc0f0940d7b182e21
Reviewed-on: https://go-review.googlesource...
get, at least, is called from typedmemclr which must not be interruptible.
These were previously...
Although I can't think of any reason to do this, it is possible for
a user-defined flag to imple...
The nounified frontend currently tries to construct dictionaries that
correspond to invalid inst...
Replace two immediate operations with one, where possible.
Change-Id: Idc00e868155c9ca1d872aaaf...
7234c90352e5ea7769c02808017fb20043ea8210 authored over 2 years ago
The use of SEQZ/SNEZ and SUB allows for other optimisations to be utilised,
particularly absorpt...
On riscv64 we need 8 byte alignment for 8 byte loads - the existing check
was only ensuring 4 by...
The conversion T(x) is implemented as *(*T)(x). Accordingly, runtime
panic messages for (*T)(x) ...
In unified IR, local defined types are promoted to a global defined
type with a "vargen" suffix....
This test case already works with GOEXPERIMENT=unified, and it never
worked with Go 1.18 or Go 1...
Resend of CL 315281 which was partially reverted by CL 354249 after the
original CL was suspecte...
The type of the source and destination of a memmove call isn't
always accurate. It will always b...
Change-Id: If36e9fd7d6b1993ca2d0d382e7fa52212170c798
Reviewed-on: https://go-review.googlesource...
TestReadRequest_Bad's tests for leading whitespace in the first header
were also exercising the ...
Fixes #50770.
Change-Id: If0104883bb409ec85827fa5b570f68099ad4fd1d
Reviewed-on: https://go-revi...
Changes:
1. When e_shstrndx holds the value SHN_UNDEF (0), the file has no section
name string ...
In module mode, we shouldn't handle packages under GOPATH any
differently from other packages. C...
Change-Id: If09094e72161f2c5da9102706781524e32f87782
GitHub-Last-Rev: 89949bc6ee8622be31c4e4db45...
For #45557
Change-Id: I25be5b437fa1c9b0e0c46802a9b37efc2d47bca0
Reviewed-on: https://go-review....
Since os.SEEK_SET was deprecated, use io.SeekStart instead.
Change-Id: I11ae496b071ab35412403ff...
351037d16c16602388709b846420094eabb5ce16 authored over 2 years ago
Change-Id: I517e75faca18bf0fdcd4e6c837f50f824aa6348c
Reviewed-on: https://go-review.googlesource...
This reverts CL 431255.
Reason for revert: breaks darwin-arm and linux-noopt builders.
Change-...
fc1cddcfe916eff82b7c6a0e82765e9b9fe29980 authored over 2 years ago
Now we have 8-byte alignment types on 32-bit system, so in some rare
case, e.g, generated wrappe...
Accessing the address of something often needs the same (or even less)
number of instructions as...
Change-Id: Ic3c1c972bec39e14ea1af50ab2b5d887dac29eab
Reviewed-on: https://go-review.googlesource...
When SLTI/SLTIU is used with ANDI/ORI, it may be possible to determine the
outcome based on the ...
CL 427615 causes failures when Len64 can't be inlined. It's unclear to
me why this wasn't a prob...
If one (accidentally) uses Go 1.16 as bootstrap toolchain, we
want it to print the error
found ...
1c19c5602bc5d5f54463b1a0133965fa25ebcd56 authored over 2 years ago
On Linux a signal sent using tgkill will have si_code == SI_TKILL,
not SI_USER. Treat the two ca...
Return errors instead of calling t.Fatalf for timing-sensitive failure
modes. Scale the Sleep ca...
Use the delta for computing min and max values. This elides a few bounds checks:
compilecmp lin...
2addbf3f2a91e2caa0903c79a44d722e9bcd913d authored over 2 years agoFixes #51152
Change-Id: Ib366e733434b4bb60ac93e6e622d9ba50bfe4e26
GitHub-Last-Rev: e98220d62fc4...
Remove a harmless but redundant section of code introduced
in CL 407214.
Change-Id: Id6522e6ff1...
a84f46a28a1a9ffc0183fed394b6969c10fad502 authored over 2 years ago
Currently bgsweep attempts to be a low-priority background goroutine
that runs mainly when the a...
This change adds a metric to the runtime/metrics package which tracks
total mutex wait time for ...
Currently, wait reasons are set somewhat inconsistently. In a follow-up
CL, we're going to want ...
This change adds 3 new waitReasons that correspond to sync.Mutex.Lock,
sync.RWMutex.RLock, and s...
This changes adds a breakdown for estimated CPU usage by time. These
estimates are not based on ...
There are lots of useless buckets with too much precision. Introduce a
minimum level of precisio...
This should fix the ssacheck builder.
Change-Id: I4b6172df33d6447f7ec8fd8e301c6380efb92588
Revi...
Includes cases where the core type of the variadic parameter is
a slice or bytestring. Permits a...
Apparently the new darwin linker starts to emit a warning about
-no_pie deprecation. Maybe we wa...
When running on Go 1.19, we can further simplify some of the exec.Cmd
helpers due to API improve...
Now that the required Go bootstrap version is 1.17, we can simplify
some of the logic for workin...
function "ExampleFprint" will be rewritten to function "main"
when displayed on the godoc pages,...
The correct spelling is asyncpreemptoff=1,
but clearly this test doesn't need it.
Change-Id: Ic...
b35b4a31e167a170a5ee481ed525272bc44dcc33 authored over 2 years ago
For proposal #41583, add a new 'go test -skip' flag to make it easy
to disable specific tests, b...
The object header string is meant to record the relevant toolchain
configuration, so that we don...
Update #53280
Change-Id: I1c8d4510fbe8bdfe9a41575bde54ea2fbf6b67e9
Reviewed-on: https://go-revi...
Update #53280
Change-Id: Iaa7c0cf5dbefaa8e14c2de499f99755911c17672
Reviewed-on: https://go-revi...
Updates #46505
Change-Id: Ib8f52d6ae199338f278731267c966da85dd0acdd
Reviewed-on: https://go-rev...