Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

Hackpad

We strive for making code editing in the browser a powerful, streamlined experience.
Collective - Host: opensource - https://opencollective.com/hackpad - Website: https://hackpad.org - Code: https://github.com/hack-pad

cmd/api: skip tests on platforms that cannot exec

These tests execute commands using exec.Command.

Change-Id: I2708d6d24762fe2b2a902b1b221cc67392...

github.com/hack-pad/go - 17078f5860699e0d1e1f6f3ca328f92621ac49d0 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/link: refactor usage of SymLocalentry helper functions

PPC64 ELFv2 uses the st_other field of a symbol to specify an offset
from the global entry point...

github.com/hack-pad/go - edd1273b841050e96d9ddd937fc00c0eebe10f1b authored about 2 years ago by Paul E. Murphy <[email protected]>
misc/wasm: update deprecated substr usage

String.prototype.substr is deprecated and usage is no longer
recommended so using String.prototy...

github.com/hack-pad/go - ff34676cdd5f2c318fa58e78c84a90b3e5a21b04 authored about 2 years ago by Marko Kungla <[email protected]>
runtime: using bytes.CutPrefix

Change-Id: I3f2dae17496b5b4efbdc022802f941a616abd87a
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - 6c3567873c4c58fe5b9e9abe77fed826a8e2ac97 authored about 2 years ago by cuiweixie <[email protected]>
cmd/compile: abstract type type+value obtained from types2

In preparation for encoding it in a more efficient way.

Change-Id: I299dd2befc3d07107a1b7b49225...

github.com/hack-pad/go - b52783c1e9673793da85dc7a9fb433d033da2e10 authored about 2 years ago by Keith Randall <[email protected]>
bytes,strings: optimize Repeat

When generating long strings or slices with Repeat we
currently reuse intermediate states as a w...

github.com/hack-pad/go - dcb90152a444be97fcc45bb12d176641c1b0d90e authored about 2 years ago by Carlo Alberto Ferraris <[email protected]>
debug/elf: suport files with >= 65280 (0xff00) sections

The spec https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.eheader.html
states:

1. e_shnum: I...

github.com/hack-pad/go - 7d157fd0eb637a4c58f629421dd8d028022391d2 authored about 2 years ago by Zeke Lu <[email protected]>
cmd: relocate search.MatchPattern to cmd/internal/pkgpattern

Relocate cmd/go's search.MatchPattern helper routine to a new package
in cmd/internal from its c...

github.com/hack-pad/go - 1e4989c33674bf9570c99250a081a448c3cded65 authored about 2 years ago by Than McIntosh <[email protected]>
runtime/trace: add missing events for the locked g in extra M.

Extra Ms may lead to the "no consistent ordering of events possible" error when parsing trace fi...

github.com/hack-pad/go - fb6c210dc3c3f1f211b469214f0ec1c881fd088e authored about 2 years ago by doujiang24 <[email protected]>
cmd/go/internal: use strings.CutSuffix

Updates #42537

Change-Id: I2d4c5e911c8a2ddfe9a976896b05d3cd8be61f6b
GitHub-Last-Rev: a87597d8a7...

github.com/hack-pad/go - 48a58c5d2c24bcba9cd141b3c3d6344d52274bbd authored about 2 years ago by cui fliter <[email protected]>
reflect: clarify that Value.Comparable checks the value

For #46746

Change-Id: Ic7a31ddf7cd6bf6dd0db6b9eb3fee68fc180f72e
Reviewed-on: https://go-review....

github.com/hack-pad/go - b0f8e20d041cdb739db558c00edf14eb7e01c3da authored about 2 years ago by Ian Lance Taylor <[email protected]>
debug/dwarf: don't crash on invalid range/rnglist offset

No test case because the problem can only happen for invalid data. Let
the fuzzer find cases lik...

github.com/hack-pad/go - c929a5b855e5d1680a70c5e1ab11a4933655d66c authored about 2 years ago by Ian Lance Taylor <[email protected]>
net/http: fix the potential leak of textproto.Reader from pool

Fixes #55835

Change-Id: I6109bab2941b859e8cfef22f65a6a3a5f977a8d7
Reviewed-on: https://go-revie...

github.com/hack-pad/go - d9d2ef991caabb3d2d0d419b652e7894cd2f4546 authored about 2 years ago by Andy Pan <[email protected]>
image/gif,image/jpeg,image/png: skip FuzzDecode in testing short mode

The image/gif.FuzzDecode takes an excessive amount of time to run on various
builders - skip the...

github.com/hack-pad/go - e978ef36e3e8d09413387883b5b01fc6cdbb7640 authored about 2 years ago by Joel Sing <[email protected]>
internal/goroot: using strings.CutPrefix replace strings.HasPrefix and strings.TrimPrefix

Change-Id: I63b2af955e2ada6d20e72c10797576d93bbc7e71
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - 789e798f0436361bfe8ca492a933cfeb17d2780c authored about 2 years ago by cuiweixie <[email protected]>
all: replace [0-9] with \d in regexps

1. replace [0-9] with \d in regexps
2. replace [a-zA-Z0-9_] with \w in regexps

Change-Id: I9e26...

github.com/hack-pad/go - fac5338a6c788df948edafa055ed998c46ba545e authored about 2 years ago by TomCao New Macbook Pro <[email protected]>
runtime: add cgo guard for exit hooks test

Add an additional guard to ensure that we don't try to run the "-race"
variant of the exit hooks...

github.com/hack-pad/go - 550864e5d20d6d3507aae7d2797f84140963d555 authored about 2 years ago by Than McIntosh <[email protected]>
cmd/go/internal: use time.DateTime constant

Use the newly defined time.Datetime constant instead of a string literal.

Updates #52746

Chang...

github.com/hack-pad/go - f6e1677428e3df28e936cb000b58fca377f67d72 authored about 2 years ago by cui fliter <[email protected]>
cmd/compile: add coverage fixup mode

Adds a -coveragecfg=<configfile> command line option to the compiler
to help support a cooperati...

github.com/hack-pad/go - e6d9057e2f3442b133afe7e37bec72bb9b780b04 authored about 2 years ago by Than McIntosh <[email protected]>
cmd/compile,cmd/link: hooks for identifying coverage counters

Add a new "coverage counter" classification for variables to be used
for storing code coverage c...

github.com/hack-pad/go - 072c7d4969862c84430cc2daef20a8f7f3ba78a2 authored about 2 years ago by Than McIntosh <[email protected]>
all: use strings.CutPrefix

Updates #42537

Change-Id: Ice23d7d36bbede27551cbc086119694f6a3b5e4a
GitHub-Last-Rev: 0d65208313...

github.com/hack-pad/go - 361f5eba9f9e9902226e7edac76646253b7025e4 authored about 2 years ago by cui fliter <[email protected]>
go/types, types2: report "undefined: p.x" instead of "x not declared by package p"

This matches the compiler's long-standing behavior.

For #55326.

Change-Id: Icd946b031b1b6e6549...

github.com/hack-pad/go - 17f83e347312ce3e7a0369f1db50d60e6104f4cf authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: report "undefined: x" instead of "undeclared name: x"

This matches the compiler's long-standing behavior.

For #55326.

Change-Id: I90696a11f0b7d1f4be...

github.com/hack-pad/go - 2da95e0ec80cb7df1f89a7b7f147dde42ad17a19 authored about 2 years ago by Robert Griesemer <[email protected]>
sync: clarify Cond.Wait documentation

The previous wording was unclear and seemingly contradictory.

Change-Id: I0781dc4525948f4e8e569...

github.com/hack-pad/go - b8d8c9e79f24dedc3c01e4e26d5a885720c479f0 authored about 2 years ago by Isaiah Becker-Mayer <[email protected]>
runtime: add an exit hook facility

Add a new API (not public/exported) for registering a function with
the runtime that should be c...

github.com/hack-pad/go - 07bdf1dc545c6f6e59f5780a9024e6f230d9b434 authored about 2 years ago by Than McIntosh <[email protected]>
runtime: add hook to register coverage-instrumented packages

Add support to the runtime for registering coverage-instrumented
packages, using a new hook that...

github.com/hack-pad/go - cf83a490e495e5bfa7065cd97811e689101a687e authored about 2 years ago by Than McIntosh <[email protected]>
internal/coverage: add apis for reading/writing counter data

Add utilities for reading and writing of counter data files as part of
the new code coverage imp...

github.com/hack-pad/go - efa3f1749fabe3b3062edff7651baa8cb1f574ab authored about 2 years ago by Than McIntosh <[email protected]>
reflect: create funcTypes using StructOf

follow the TODO to use StructOf, this cl can save the used memory.
for example, old code alloc [...

github.com/hack-pad/go - 63668a5155c808f474d5adab676ef3f3aa50c1d3 authored about 2 years ago by cuiweixie <[email protected]>
go/types, types2: use "invalid recursive type" instead of "illegal cycle" in error messages

This matches long-standing compiler behavior.

For #55326.

Change-Id: Ic5aa0dfb08d035f2c33532cc...

github.com/hack-pad/go - 22f447159981a58508ac190f297798cdd5fd668b authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: provide error codes where they were missing

We need a better approach eventually, but this is ok for now.
In go/types, always use _Unsupport...

github.com/hack-pad/go - 4c5a6f9555558cd2809270c907ffb52a698a6a3b authored about 2 years ago by Robert Griesemer <[email protected]>
internal/coverage: add coverage meta-data decoder

Add a coverage meta-data decoder, which provides APIs for reading
encoded coverage meta-data and...

github.com/hack-pad/go - 84f95aa811ed4fdb316f787fe2af80b30d531abf authored about 2 years ago by Than McIntosh <[email protected]>
internal/coverage: add coverage meta-data encoder

Add a new package with APIs for encoding coverage meta-data. This
provides support for accumulat...

github.com/hack-pad/go - f951f697c45ace2f00dccd8d2533463b6538dc36 authored about 2 years ago by Than McIntosh <[email protected]>
cmd: add a new goexperiment for redesigned code coverage

Add a new "coverageredesign" GOEXPERIMENT (currently off by default),
for gating the use of the ...

github.com/hack-pad/go - a3434b71a349b396bef43921732709c3a5f54f23 authored about 2 years ago by Than McIntosh <[email protected]>
syscall: check if to is nil to prevent panic from WSASendto

to is an optional pointer to sockaddr, as written in the doc:
https://learn.microsoft.com/en-us/...

github.com/hack-pad/go - 52f9c6fdb0e5748406134e093e9fb791af14d300 authored about 2 years ago by cuiweixie <[email protected]>
internal/saferio: handle potential total size overflow in SliceCap

Before the change, "SliceCap((*int64)(nil), 1<<62)" returns 1<<62.
That's because "uintptr(c)*si...

github.com/hack-pad/go - 4da2bc2eebb480f1c2a726de05f4e085e97d3b6c authored about 2 years ago by Zeke Lu <[email protected]>
os/exec: split parent I/O pipes by whether they are pumped by user code or internal goroutines

The pipes pumped by goroutines can be closed as soon as their
respective goroutines are done.

T...

github.com/hack-pad/go - bd8a5b00fcf71fb711ba8996a880b5b07f7b3634 authored about 2 years ago by Bryan C. Mills <[email protected]>
os/exec: clean up pipe-closing logic

Change the childFiles field to a local variable, since it was
populated during Start and (as far...

github.com/hack-pad/go - b8d4a14a660827ea0331eb6cad99860bf5fdf66f authored about 2 years ago by Bryan C. Mills <[email protected]>
internal/cpu: deduplicate arm64 ISAR parsing code

Deduplicate code for parsing system registers - this matches what is done
in golang.org/x/sys/cp...

github.com/hack-pad/go - 1163acf3eaedf870d069058b540bfef5c470f520 authored about 2 years ago by Joel Sing <[email protected]>
internal/cpu: enable arm64 SHA512 detection for freebsd/openbsd

Change-Id: I1f21654b50d7b0cd8e1f854efe2724b72f067449
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - 95a5e20d8f7a6f7863eb3281e3a198a577e773fe authored about 2 years ago by Joel Sing <[email protected]>
reflect: simplify Value.Comparable

using Type.Comparable to simplify the Value.Comparable,
and return true directly when exit the f...

github.com/hack-pad/go - c3728b75024667927f690373cea324dd26777414 authored about 2 years ago by cuiweixie <[email protected]>
cmd/go/internal/mmap: fix build for js/wasm

Even though there isn't much point in building cmd/go for js/wasm given
it relies on executing s...

github.com/hack-pad/go - deaec39323aced382a12ed0360fad03ad1dbb906 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/go/internal, go/build: remove unused errGoBuildWithoutBuild

Last use was removed by CL 240607.

Change-Id: Icfe9e477c6035823bd676a2ff28e1ac202dd991e
Reviewe...

github.com/hack-pad/go - eab78849fc24f890836d00c04b495e64d4fe4187 authored about 2 years ago by Tobias Klauser <[email protected]>
syscall: check if to is nil to prevent panic from Sendto

Fixes #55845

Change-Id: If30263b7d34829c40e6606846115ec520f351f2c
Reviewed-on: https://go-revie...

github.com/hack-pad/go - 5036ed26bd241cb8eadf4d0f00de6b9d3449bf87 authored about 2 years ago by Andy Pan <[email protected]>
cmd/go: avoid internal errors on "go test -testwork"

Fix up the package test harness to avoid errors of the form

go_test.go:NNN: internal testsuit...

github.com/hack-pad/go - 1e91ffc897efb1ed298753c08f086fbc8f725025 authored about 2 years ago by Than McIntosh <[email protected]>
encoding/gob: use saferio.SliceCap when decoding a slice

This avoids allocating an overly large slice for corrupt input.

Change the saferio.SliceCap fun...

github.com/hack-pad/go - a0441c7ae3dea57a0553c9ea77e184c34b7da40f authored about 2 years ago by Ian Lance Taylor <[email protected]>
cmd/compile: use "missing method m" instead of "missing m method"

For #55326

Change-Id: I3d0ff7f820f7b2009d1b226abf701b2337fe8cbc
Reviewed-on: https://go-review....

github.com/hack-pad/go - 336ce966e439a269fe5088cc7564181c5b866b61 authored about 2 years ago by cuiweixie <[email protected]>
Revert "net/netip: use slice-to-array conversions"

This reverts commit 3dcf6e2c29f533865aad58488b60ae8d819a566e.

Reason for revert: breaks the lon...

github.com/hack-pad/go - e5deb1556b230642d544c451a83cb79f641727a3 authored about 2 years ago by Tobias Klauser <[email protected]>
net/http/httputil: avoid query parameter smuggling

Query parameter smuggling occurs when a proxy's interpretation
of query parameters differs from ...

github.com/hack-pad/go - 7c84234142149bd24a4096c6cab691d3593f3431 authored about 2 years ago by Damien Neil <[email protected]>
net/netip: use slice-to-array conversions

Use slice-to-array conversions in AddrFromSlice and
(*Addr).UnmarshalBinary. This allows allows ...

github.com/hack-pad/go - 3dcf6e2c29f533865aad58488b60ae8d819a566e authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/compile: use "init... cycle" instead of "init... loop" in error messages

For #55326.

Change-Id: Ia3c1124305986dcd49ac769e700055b263cfbd59
Reviewed-on: https://go-review...

github.com/hack-pad/go - c58bfeeb045895f080fff9c76fdbf3d9d8ab683b authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile: handle go.mod error msg reference in noder, not type checker

Currently, for version errors, types2 adds the helpful hint

(-lang was set to go1.xx; check go....

github.com/hack-pad/go - 5d213a3dc764624e3f01d7e957fedc63bfdcfa0f authored about 2 years ago by Robert Griesemer <[email protected]>
cmd: update vendored golang.org/x/tools for multiple error wrapping

Updates vet to permit errors with an Unwrap method returning []error
and multiple %w verbs in fm...

github.com/hack-pad/go - 2f3008386fbfbc62544e3799d14db40cbe703218 authored about 2 years ago by Damien Neil <[email protected]>
cmd/compile/internal/ir: add missing import to mknode.go

CL 426257 changed ioutil.WriteFile to os.WriteFile but didn't add the
corresponding import for p...

github.com/hack-pad/go - 68fa3696b6131082243273e57957ee22fe60eaa3 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/compile: update bottomUpVisitor.visit comments

Change-Id: I83a62b15c5946cfe61afc53c2c528aa3a62f815e
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - 7ed6073da0bb62b65984ffd2bba320334d928bd5 authored about 2 years ago by Cuong Manh Le <[email protected]>
text/template/parse: fix confusion about markers near right delims

Fixes #52527.
Fixes #55336.

Change-Id: I8f5c521c693e74451a558788909e7e4ad1cc797a
Reviewed-on: h...

github.com/hack-pad/go - 65deb9c3cea2a57b2cba892bc3dc4344ff0783c8 authored about 2 years ago by Russ Cox <[email protected]>
path/filepath: optimize isReservedName

A linear search through a list of 22 strings takes ~80ns.
A quick check for 3-4 byte strings red...

github.com/hack-pad/go - 2551324cd01b295915c10c6d3d06625676401610 authored about 2 years ago by Joe Tsai <[email protected]>
runtime/pprof: force use of 4-column profiles in pprof memprofile output

Pprof's converter from legacy text format to protobuf format
assumes that if the alloc and inuse...

github.com/hack-pad/go - c2ede92a0d461cca8ab5fba8840e15670710fbd9 authored about 2 years ago by Russ Cox <[email protected]>
cmd/internal/objfile: read file/line information for ELF PIE binaries

For PIE binaries, the .gopclntab section doesn't have the usual
name, but .data.rel.ro.gopclntab...

github.com/hack-pad/go - ddaf68200a485ae9605a397372b5d59f4dfba759 authored about 2 years ago by Cherry Mui <[email protected]>
cmd/compile/internal/walk: remove reduceSlice

After CL 22425, there're two optimizations for slice expr which are
never applied during walk pa...

github.com/hack-pad/go - 533cd80315904661e3d644a140bdf52c8ac7aad6 authored about 2 years ago by Cuong Manh Le <[email protected]>
cmd/go: omit VCS stamping during bootstrap

cmd/dist can't easily hard-code -buildvcs=false because not all
versions of cmd/go supported for...

github.com/hack-pad/go - 42a46206b97ca7cf4246d3c1230a70cf42ad5bb0 authored about 2 years ago by Bryan C. Mills <[email protected]>
cmd/compile/internal/syntax: remove TypeList syntax in comment

Change-Id: Ic4df6a8e198b069a9f3a28710fa40f29bd658b06
GitHub-Last-Rev: 51040eb5e53f4cf0238cb0b787...

github.com/hack-pad/go - 88a6a4d1ba75c01fcc7ab8b2b5c6108c36eb92b9 authored about 2 years ago by Kevin Chen <[email protected]>
crypto/tls: convert Conn.activeCall to atomic type

Change-Id: I5b063070a17bdeed57e73bfb76125b94268b3bc9
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - ebaa5ff39ee4046f7f94bf34a6e05702286b08d2 authored about 2 years ago by cuiweixie <[email protected]>
all: tidy std module

Change-Id: I7350a608a198073673fb9b7e9b91dae6f1c861b7
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - d7df872267f9071e678732f9469824d629cac595 authored about 2 years ago by Damien Neil <[email protected]>
net/http: add tracing to TestTransportReuseConnection_Gzip_*

These tests are flaky; add some additional logging in hopes
it will aid in debugging.

For #5337...

github.com/hack-pad/go - 441223050335590875581275cd538034111f28d8 authored about 2 years ago by Damien Neil <[email protected]>
net/http: accept HEAD requests with a body

RFC 7231 permits HEAD requests to contain a body, although it does
state there are no defined se...

github.com/hack-pad/go - e246cf626d1768ab56fa9eeafe4d23266e956ef6 authored about 2 years ago by Damien Neil <[email protected]>
all: update vendored golang.org/x/net

Pull in HTTP/2 fix needed for net/http test case.

f8f703f979 http2: accept HEAD requests with ...

github.com/hack-pad/go - 493ebc359029a066d039adf861ea33bec68422b8 authored about 2 years ago by Damien Neil <[email protected]>
math: show value of integer constants in comments

Fixes #51282

Change-Id: I5b0d68165b727a427bd4a42663b2fa0070ced22f
Reviewed-on: https://go-revie...

github.com/hack-pad/go - 68370187fafe9c355e489d6976c35cd908f37a00 authored about 2 years ago by Shulhan <[email protected]>
spec: describe an edge case for slice expression of nil slice

Change-Id: I8c0e2b37e7e8cb4db6ad0b456fde7eb908ffbd04
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - 334984a92a33cd11a12071c03374916162188e2f authored about 2 years ago by Cuong Manh Le <[email protected]>
spec: describe an edge case of slice-to-array conversions

Converting from nil slice to zero element array is ok, so explicitly
describe the behavior in th...

github.com/hack-pad/go - 4b58b3077801b83c7ebc8eca23c7f63913d0778f authored about 2 years ago by Cuong Manh Le <[email protected]>
bytes, strings: add ASCII fast path to EqualFold

This commit adds an ASCII fast path to bytes/strings EqualFold that
roughly doubles performance ...

github.com/hack-pad/go - c70fd4b30aba5db2df7b5f6b0833c62b909f50eb authored about 2 years ago by Charlie Vieth <[email protected]>
fmt: rely on utf8.AppendRune

This is both simpler and more performant.
The need for fmt.fmtC to manually check for utf8.MaxRu...

github.com/hack-pad/go - 9c916c79011f3af98b5670eb2ba55349ba904522 authored about 2 years ago by Joe Tsai <[email protected]>
runtime: treat SI_TKILL like SI_USER on Linux

On Linux a signal sent using tgkill will have si_code == SI_TKILL,
not SI_USER. Treat the two ca...

github.com/hack-pad/go - d11c58eedbee29b4912dd50508b36ad15ebb739e authored about 2 years ago by Ian Lance Taylor <[email protected]>
Revert "cmd/compile: enable carry chain scheduling for arm64"

This reverts commit 4c414c7673af6b2aedee276d2e62cb2910eb19f3.

Reason for revert: breaks ppc64 b...

github.com/hack-pad/go - fec83c8a7d1a3bb5f63366acd55f83ed8782bff0 authored about 2 years ago by Keith Randall <[email protected]>
time: optimize Parse for []byte arguments

When one has a []byte on hand, but desires to call the Parse function,
the conversion from []byt...

github.com/hack-pad/go - bcd44b61d3154b22ffce10302ea9c34ba639a98e authored about 2 years ago by Joe Tsai <[email protected]>
spec: fix typo in a type parameter example

Fixes #54973

Change-Id: Ibad9dd124617a1bbc23abd17cbd6e9e9928e3ed9
GitHub-Last-Rev: 1c6affb967ef...

github.com/hack-pad/go - 0bfa9f0435e03176b04ad202320be441d03ee25f authored about 2 years ago by VRDighe <[email protected]>
syscall: drop compatibility for FreeBSD < 10.0

Change-Id: Idd8cee84215e61817a86915160c91242670798af
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - 1e96f42c2a80ca99c202409683ba5bd755bf3d85 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/cgo: mention //go:build line in godoc

Say "//go:build" instead of "// +build" in the package level godoc
comment.

Change-Id: I4700227...

github.com/hack-pad/go - b5fcb35b3197bc4d444ee0b9ad4ae6c5998864cf authored about 2 years ago by Tobias Klauser <[email protected]>
crypto: use encoding append functions

Replace custom append functions in the hash functions with the implementation of the encoding/bi...

github.com/hack-pad/go - 1eeb257b88e59f2f3ce3cbe0eb80a9f049765853 authored about 2 years ago by Erik Pellizzon <[email protected]>
all: replace package ioutil with os and io in src

For #45557

Change-Id: I56824135d86452603dd4ed4bab0e24c201bb0683
Reviewed-on: https://go-review....

github.com/hack-pad/go - f8c659b62ff43e8455ebc675e577b9adc67b3f9f authored about 2 years ago by Andy Pan <[email protected]>
mime/multipart: use %w when wrapping error in NextPart

Use "%w" instead of "%v" as format verb for error value in the NextPart
method. This way it will...

github.com/hack-pad/go - 1e7e160d070443147ee38d4de530ce904637a4f3 authored about 2 years ago by thinkofher <[email protected]>
cmd/compile: enable carry chain scheduling for arm64

This is a follow up of CL 393656 on arm64.

Benchmarks:
name ol...

github.com/hack-pad/go - 4c414c7673af6b2aedee276d2e62cb2910eb19f3 authored about 2 years ago by eric fang <[email protected]>
cmd/compile: Add some CMP and CMN optimization rules on arm64

This CL adds some optimizaion rules:
1, Converts CMP to CMN, or vice versa, when comparing with ...

github.com/hack-pad/go - cf53990b18750e77963e5cf075c5a921d384b33b authored about 2 years ago by eric fang <[email protected]>
net/http: convert Server.disableKeepAlives to atomic type

Change-Id: I87526520b519554ea344288cc0f0940d7b182e21
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - 7db923fe565465f292d3e62d6c7ded86e724062d authored about 2 years ago by cuiweixie <[email protected]>
runtime: make mSpanStateBox accessors nosplit

get, at least, is called from typedmemclr which must not be interruptible.
These were previously...

github.com/hack-pad/go - f1b7b2fc52947711b8e78f7078c9e0bda35320d3 authored about 2 years ago by Keith Randall <[email protected]>
flag: test IsBoolFlag when creating the usage message

Although I can't think of any reason to do this, it is possible for
a user-defined flag to imple...

github.com/hack-pad/go - 2d741947d8931325576427b3699d1af20e7be7cf authored about 2 years ago by Rob Pike <[email protected]>
cmd/compile: skip emitting dictionaries with missing method expressions

The nounified frontend currently tries to construct dictionaries that
correspond to invalid inst...

github.com/hack-pad/go - d31f85009cb81604c23e3e471fc4f7d62b9089ff authored about 2 years ago by Matthew Dempsky <[email protected]>
cmd/compile: combine operations with immediate on riscv64

Replace two immediate operations with one, where possible.

Change-Id: Idc00e868155c9ca1d872aaaf...

github.com/hack-pad/go - 7234c90352e5ea7769c02808017fb20043ea8210 authored about 2 years ago by Joel Sing <[email protected]>
cmd/compile: avoid the use of XOR for boolean equality on riscv64

The use of SEQZ/SNEZ and SUB allows for other optimisations to be utilised,
particularly absorpt...

github.com/hack-pad/go - 83d94daec2636badf02ecda18f7a7c1f4eb1fd74 authored about 2 years ago by Joel Sing <[email protected]>
internal/bytealg: correct alignment checks for compare/memequal on riscv64

On riscv64 we need 8 byte alignment for 8 byte loads - the existing check
was only ensuring 4 by...

github.com/hack-pad/go - fd82718e06a7b8a32becb1751592854d49904075 authored about 2 years ago by Joel Sing <[email protected]>
cmd/compile: implement slice-to-array conversions

The conversion T(x) is implemented as *(*T)(x). Accordingly, runtime
panic messages for (*T)(x) ...

github.com/hack-pad/go - ceffdc8545c3155b030de9e91d399dc34bd3c678 authored about 2 years ago by Matthew Dempsky <[email protected]>
go/internal/gcimporter: fix ureader.go handling of local defined types

In unified IR, local defined types are promoted to a global defined
type with a "vargen" suffix....

github.com/hack-pad/go - 29153be75763b7cbf9395d732f454336e3df0286 authored about 2 years ago by Matthew Dempsky <[email protected]>
test: add regress test for issue 55101

This test case already works with GOEXPERIMENT=unified, and it never
worked with Go 1.18 or Go 1...

github.com/hack-pad/go - 38cecb22903415b34991ce76efe725f47aaf21a3 authored about 2 years ago by Matthew Dempsky <[email protected]>
os: use wait6 to avoid wait/kill race on netbsd

Resend of CL 315281 which was partially reverted by CL 354249 after the
original CL was suspecte...

github.com/hack-pad/go - d74bf73be052851e83fb59a40f47d49f4b890ca3 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/compile: avoid using destination pointer base type in memmove optimization

The type of the source and destination of a memmove call isn't
always accurate. It will always b...

github.com/hack-pad/go - e283473ebbebf4a80db166e7e852d03c5cff1a61 authored about 2 years ago by Keith Randall <[email protected]>
reflect: rtype.MethodByName using binary search

Change-Id: If36e9fd7d6b1993ca2d0d382e7fa52212170c798
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - 0053ec452db5bd973c7ac9f4faa5041884e460e8 authored about 2 years ago by cuiweixie <[email protected]>
net/http: correctly test for leading header spaces in TestReadRequest_Bad

TestReadRequest_Bad's tests for leading whitespace in the first header
were also exercising the ...

github.com/hack-pad/go - e7312b1005e77633a4fbd3a5cbb371aef45b0867 authored about 2 years ago by Damien Neil <[email protected]>
time: implement Compare method

Fixes #50770.

Change-Id: If0104883bb409ec85827fa5b570f68099ad4fd1d
Reviewed-on: https://go-revi...

github.com/hack-pad/go - d8e6ed32622b692c79a4db42e878921e1d3f16a8 authored about 2 years ago by Roger Peppe <[email protected]>
debug/elf: validate shstrndx

Changes:

1. When e_shstrndx holds the value SHN_UNDEF (0), the file has no section
name string ...

github.com/hack-pad/go - b6d5831caa219aa00574fbacb1026585cf11d6b4 authored about 2 years ago by Zeke Lu <[email protected]>
cmd/go: clear GOPATH from build context when importing from module

In module mode, we shouldn't handle packages under GOPATH any
differently from other packages. C...

github.com/hack-pad/go - 73c38f226e15e218411d87a05c878f087ad89455 authored about 2 years ago by Michael Matloob <[email protected]>
runtime/pprof: set labelMap length

Change-Id: If09094e72161f2c5da9102706781524e32f87782
GitHub-Last-Rev: 89949bc6ee8622be31c4e4db45...

github.com/hack-pad/go - 0857633f8b4ca4b28aad160d1dd1dbb1fe5a4d7d authored about 2 years ago by Sasha Melentyev <[email protected]>