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

misc/cgo: replace ioutil.ReadFile with os.ReadFile

For #45557

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

github.com/hack-pad/go - c91b1009d52d91eb3a949945789ff235246c0075 authored about 2 years ago by hopehook <[email protected]>
misc/cgo: replace os.SEEK_SET with io.SeekStart

Since os.SEEK_SET was deprecated, use io.SeekStart instead.

Change-Id: I11ae496b071ab35412403ff...

github.com/hack-pad/go - 351037d16c16602388709b846420094eabb5ce16 authored about 2 years ago by hopehook <[email protected]>
internal/syscall/unix: reuse existing {Fstat,Open,Unlink}at on freebsd

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

github.com/hack-pad/go - f4becf15bdbcb098ec6cfb5373ad113b3d991d43 authored about 2 years ago by Tobias Klauser <[email protected]>
Revert "runtime: treat SI_TKILL like SI_USER on Linux"

This reverts CL 431255.

Reason for revert: breaks darwin-arm and linux-noopt builders.

Change-...

github.com/hack-pad/go - fc1cddcfe916eff82b7c6a0e82765e9b9fe29980 authored about 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile/internal/typebits: relax alignment check

Now we have 8-byte alignment types on 32-bit system, so in some rare
case, e.g, generated wrappe...

github.com/hack-pad/go - 00bee6d9a4c3ed6168350fc6551043ff7a1895f2 authored about 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile,sync: make accessing address of zero offset struct field inline cost 0

Accessing the address of something often needs the same (or even less)
number of instructions as...

github.com/hack-pad/go - 638c9aad5f88f96d9aa525bbe403c8a5d3b743e8 authored about 2 years ago by Cuong Manh Le <[email protected]>
debug/pe: be careful to avoid potential uint32 overflow

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

github.com/hack-pad/go - 63d05642d48ec81637481518df962f2b3be435a3 authored about 2 years ago by Dan Kortschak <[email protected]>
cmd/compile: resolve known outcomes for SLTI/SLTIU on riscv64

When SLTI/SLTIU is used with ANDI/ORI, it may be possible to determine the
outcome based on the ...

github.com/hack-pad/go - a7bcc94719a5a79241aa3ce35c1e2dbb83b94af7 authored about 2 years ago by Joel Sing <[email protected]>
runtime/internal/sys: make Len64 nosplit

CL 427615 causes failures when Len64 can't be inlined. It's unclear to
me why this wasn't a prob...

github.com/hack-pad/go - cc1b20e8adf83865a1dbffa259c7a04ef0699b43 authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
cmd/dist: add old style build tags

If one (accidentally) uses Go 1.16 as bootstrap toolchain, we
want it to print the error

found ...

github.com/hack-pad/go - 1c19c5602bc5d5f54463b1a0133965fa25ebcd56 authored about 2 years ago by Cherry Mui <[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 - 7c87012f041948af55d323fc5447230c930e79aa authored about 2 years ago by Ian Lance Taylor <[email protected]>
net/http: deflake TestServerCancelsReadHeaderTimeoutWhenIdle

Return errors instead of calling t.Fatalf for timing-sensitive failure
modes. Scale the Sleep ca...

github.com/hack-pad/go - a9ca741d311772efb828c4b4f45e737783a89ca3 authored about 2 years ago by Bryan C. Mills <[email protected]>
cmd/compile: make isConstDelta compute delta for 8 and 16 bit arithmetic

Use the delta for computing min and max values. This elides a few bounds checks:

compilecmp lin...

github.com/hack-pad/go - 2addbf3f2a91e2caa0903c79a44d722e9bcd913d authored about 2 years ago by Jakub Ciolek <[email protected]>
net: set AD bit in DNS queries when trust-ad in resolv.conf

Fixes #51152

Change-Id: Ib366e733434b4bb60ac93e6e622d9ba50bfe4e26
GitHub-Last-Rev: e98220d62fc4...

github.com/hack-pad/go - 2d89bec2de0ee9d340346dea6b1506457f5f7722 authored about 2 years ago by Mateusz Poliwczak <[email protected]>
net/http/httputil: remove duplicated code block

Remove a harmless but redundant section of code introduced
in CL 407214.

Change-Id: Id6522e6ff1...

github.com/hack-pad/go - a84f46a28a1a9ffc0183fed394b6969c10fad502 authored about 2 years ago by Damien Neil <[email protected]>
runtime: tweak bgsweep "low-priority" heuristic

Currently bgsweep attempts to be a low-priority background goroutine
that runs mainly when the a...

github.com/hack-pad/go - 8451529e9ab26901f952976f9dcadd498d808c32 authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
runtime/metrics: add /sync/mutex/wait/total:seconds metric

This change adds a metric to the runtime/metrics package which tracks
total mutex wait time for ...

github.com/hack-pad/go - 63ceff95fa7cc93dd848b503dedcef53b918cdc3 authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
runtime: set G wait reason more consistently

Currently, wait reasons are set somewhat inconsistently. In a follow-up
CL, we're going to want ...

github.com/hack-pad/go - 686b38b5b27fe14318adfee57aac780c452fddd6 authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
runtime: make the wait reason for a g blocked on a mutex more specific

This change adds 3 new waitReasons that correspond to sync.Mutex.Lock,
sync.RWMutex.RLock, and s...

github.com/hack-pad/go - a2c396ce00df96f66246aab7a63f3ce5b7ad8753 authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
runtime/metrics: add CPU stats

This changes adds a breakdown for estimated CPU usage by time. These
estimates are not based on ...

github.com/hack-pad/go - b7c28f484ddbc8267273c997e1bcc83a1391b5f7 authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
runtime: shrink time histogram buckets

There are lots of useless buckets with too much precision. Introduce a
minimum level of precisio...

github.com/hack-pad/go - 87eda2a782db9b7ad2ec1fd335ed6c7472aa66bc authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
testing: allow go test -run=^$ testing

This should fix the ssacheck builder.

Change-Id: I4b6172df33d6447f7ec8fd8e301c6380efb92588
Revi...

github.com/hack-pad/go - 1fc83690e68de1ce252975c5fd3a232629d6a3d6 authored about 2 years ago by Russ Cox <[email protected]>
go/types, types2: allow (string...) signature with NewSignatureType

Includes cases where the core type of the variadic parameter is
a slice or bytestring. Permits a...

github.com/hack-pad/go - 0a1118b8a172e64247ce44fcaa7483f24d834c18 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/link: suppress -no_pie deprecation warning on darwin

Apparently the new darwin linker starts to emit a warning about
-no_pie deprecation. Maybe we wa...

github.com/hack-pad/go - 706d84fca2b36fdf670a0d921e6a8a3b481eaa05 authored about 2 years ago by Cherry Mui <[email protected]>
cmd/dist: simplify exec.Cmd helpers for Go 1.19

When running on Go 1.19, we can further simplify some of the exec.Cmd
helpers due to API improve...

github.com/hack-pad/go - 5abf200d6528a67032d67d3f50ffd7ce8b536dfa authored about 2 years ago by Austin Clements <[email protected]>
cmd/dist: simplify exec.Cmd helpers

Now that the required Go bootstrap version is 1.17, we can simplify
some of the logic for workin...

github.com/hack-pad/go - d9f90df2b488b2fb7ca8c24d99f82878befb68f8 authored about 2 years ago by Austin Clements <[email protected]>
go/printer: make ExampleFprint correctly run as online example

function "ExampleFprint" will be rewritten to function "main"
when displayed on the godoc pages,...

github.com/hack-pad/go - 88b51d2e630738f9396e3825eafd90d03727ec0d authored about 2 years ago by Shengyu Zhang <[email protected]>
cmd/go: delete useless env var setting in test

The correct spelling is asyncpreemptoff=1,
but clearly this test doesn't need it.

Change-Id: Ic...

github.com/hack-pad/go - b35b4a31e167a170a5ee481ed525272bc44dcc33 authored about 2 years ago by Russ Cox <[email protected]>
cmd/go, testing: add go test -skip flag

For proposal #41583, add a new 'go test -skip' flag to make it easy
to disable specific tests, b...

github.com/hack-pad/go - e4a2c38af5bdae12591004c3d35762d23da7a9bd authored about 2 years ago by Russ Cox <[email protected]>
cmd/internal/objabi: record GO$GOARCH setting in object header

The object header string is meant to record the relevant toolchain
configuration, so that we don...

github.com/hack-pad/go - 819e3394c90e27483f1f6eabfb02d22c927a139d authored about 2 years ago by Russ Cox <[email protected]>
runtime: switch FreeBSD to use the non-COMPAT_FREEBSD11 version of the kevent syscall

Update #53280

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

github.com/hack-pad/go - e0e1ce9888f5483f834e435d53f5c6c42b9b12a1 authored about 2 years ago by Yuval Pavel Zholkover <[email protected]>
syscall: remove FreeBSD 11 and below 64bit inode compatibility shims

Update #53280

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

github.com/hack-pad/go - d8220ac32fc73e69aa6d58890b6b5277d277825f authored about 2 years ago by Yuval Pavel Zholkover <[email protected]>
reflect: allow conversion from slice to array

Updates #46505

Change-Id: Ib8f52d6ae199338f278731267c966da85dd0acdd
Reviewed-on: https://go-rev...

github.com/hack-pad/go - 805f174e5c948b4ba5d044fc816be0c23b1015c5 authored about 2 years ago by Cuong Manh Le <[email protected]>
text/template/parse: simplify I/O in lexing

The concurrent model for delivering tokens was fine for pedagogy,
but has caused a few problems ...

github.com/hack-pad/go - 36760ca9fd3eaf2c79efef48e533b66da6c542bd authored about 2 years ago by Rob Pike <[email protected]>
cmd/internal/obj/ppc64: add ISA 3.1 instructions

Use ppc64map (from x/arch) to generate ISA 3.1 support for the
assembler. A new file asm9_gtable...

github.com/hack-pad/go - 3a067b288ef235fdbc88220ea5bb384e0474f09b authored about 2 years ago by Paul E. Murphy <[email protected]>
cmd/asm, cmd/internal/obj/ppc64: increase asm test coverage for PPC64

This CL adds tests for some of the instructions that were
missing. A minor change was made to as...

github.com/hack-pad/go - c075c21ba532bd4d00158708e8c2981b8fdc19ca authored about 2 years ago by Archana R <[email protected]>
os: convert Process.isdone to atomic type

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

github.com/hack-pad/go - dedce99c06c85c25f5e999ee55691648486dd934 authored about 2 years ago by cuiweixie <[email protected]>
database: convert DB.{waitDuration,numClosed} to atomic type

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

github.com/hack-pad/go - e50dd0e974bdd621e48de2f64e02b4db5d12b393 authored about 2 years ago by cuiweixie <[email protected]>
cmd/link: support -fno-plt compiled gcc objects on ppc64le

This is the initial trivial implemenation. Further improvements can be
made for local calls.

A ...

github.com/hack-pad/go - 7fda98a8d90139fed07d7f8ca80d248a5cbc1e93 authored about 2 years ago by Paul E. Murphy <[email protected]>
time: move RFC 3339 optimizations to separate file

The optimizations were added in CL 425197 and CL 421877.
Move this functionality to a separate f...

github.com/hack-pad/go - e7a2014fac885392e14205c93fff3fd8db84fa8d authored about 2 years ago by Joe Tsai <[email protected]>
syscall: use fcntl F_DUP2FD_CLOEXEC in forkAndExecInChild on dragonfly

Use fcntl(oldfd, F_DUP2FD_CLOEXEC, newfd) to duplicate the file
descriptor and mark is as close-...

github.com/hack-pad/go - f15582c477a4df03c4793db3c82547bd2956c1ab authored about 2 years ago by Tobias Klauser <[email protected]>
strconv: add a test case when base is illegal

Increase unit test coverage of strconv/itoa.go from 83.8% to 85%

Change-Id: I0abdfc70a3f0625110...

github.com/hack-pad/go - 95ec579eb68fcc01975462a74676e3bacd9814b0 authored about 2 years ago by cui fliter <[email protected]>
hash/crc32: remove redundant code

Merge the CRC32 Update and Write functions using an unexported function, to avoid duplication of...

github.com/hack-pad/go - f6436c60e49f17f2ca723fdf76a0cb4323cbe02c authored about 2 years ago by Erik Pellizzon <[email protected]>
syscall: use fcntl F_DUP2FD_CLOEXEC in forkAndExecInChild on solaris

Use fcntl(oldfd, F_DUP2FD_CLOEXEC, newfd) to duplicate the file
descriptor and mark is as close-...

github.com/hack-pad/go - a7db14241cf59f9d3bf4e1a68cf9e503e1a05211 authored about 2 years ago by Tobias Klauser <[email protected]>
text/template: fixed typo in a nested template definition

The text was mistakenly quoted with backquotes.

Change-Id: I77ed4adac8c78b719bea61c08f1c377ed4a...

github.com/hack-pad/go - e0822b55ac2076112507016bc08d52999c25d728 authored about 2 years ago by kurochan <[email protected]>
cmd/compile: make encoding/binary appends cheaper to inline

Go 1.19 introduce new append-like APIs in package encoding/binary, this
change teaches the inlin...

github.com/hack-pad/go - 629c0b3a6e3e2ff11c9c989a8dcd1a538cdd76f4 authored about 2 years ago by Wayne Zuo <[email protected]>
cmd/compile: avoid sign extension after word arithmetic on riscv64

These instructions already do sign extension on output, so we can get rid of it.

Note: (MOVWreg...

github.com/hack-pad/go - 5760fde4df4f1e9303de122ae3b5ac80b7ef681d authored about 2 years ago by Wayne Zuo <[email protected]>
cmd/go: use strings.Builder

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

github.com/hack-pad/go - 501df45199e82cfbd2eb7422c8bfe35688712402 authored about 2 years ago by cuiweixie <[email protected]>
internal/syscall/unix: remove superfluous var declarations in {Unlink,Open}at

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

github.com/hack-pad/go - 7722b3c86d4e254ecee4fe290f81a44ba7cc1a42 authored about 2 years ago by Tobias Klauser <[email protected]>
compress/flate: update NewReader documentation

Calling close is no longer necessary.
It was was originally necessary to cleanup goroutines
spaw...

github.com/hack-pad/go - a29739145d8a46786d503bfc8a8ecf47a7381710 authored about 2 years ago by Joe Tsai <[email protected]>
runtime: optimise memclrNoHeapPointers on riscv64

Implement a more optimised memclrNoHeapPointers on riscv64, where up
to 64 bytes are zeroed per ...

github.com/hack-pad/go - 44ad662a49e0490af0be12652f64aeab6fe1a5ee authored about 2 years ago by Joel Sing <[email protected]>
cmd/link: stop passing -pagezero_size to darwin linker

We added -pagezero_size in CL 72730, where it was intented for iOS.
The current code passes it o...

github.com/hack-pad/go - 5231ba2f054f2ecb1387bad00b8745d6fe532ea4 authored about 2 years ago by Cherry Mui <[email protected]>
runtime/race: introduce subarch versioning of race syso

Allow us to select a race .syso file based on subarch values.

Note that this doesn't actually c...

github.com/hack-pad/go - e665de28611fd2cbf7789065e7a26ca12c4b9c00 authored about 2 years ago by Keith Randall <[email protected]>
cmd, syscall: use syscall.Mmap on solaris for Go ≥ 1.20

CL 413374 added syscall.Mmap on solaris. Use it in cmd/compile and
cmd/link if the bootstrap too...

github.com/hack-pad/go - 7c3284401fcd3c6cb4cb747e3332217105d007c0 authored about 2 years ago by Tobias Klauser <[email protected]>
net/http/httputil: forward 1xx responses in ReverseProxy

Support for 1xx responses has recently been merged in
net/http (CL 269997).

As discussed in thi...

github.com/hack-pad/go - 972870da11bb4ddd3df393473c494bd2b546cc56 authored about 2 years ago by Kévin Dunglas <[email protected]>
all: remove unnecessary allocations from w.WriteString(fmt.Sprint*(...)) by fmt.Fprint*(w, ...)

Noticed in a manual audit from a customer codebase that the pattern

w.WriteString(fmt.Sprin...

github.com/hack-pad/go - 4baa486983204fdff64f80809627f79a538d8d82 authored about 2 years ago by Emmanuel T Odeke <[email protected]>
go/types, types2: improve readability of _InvalidUntypedConversion docs

Remove an unnecessary 'an' from errorcodes.go.

Change-Id: Iabe8ce479077cbfff936d57c788a9b39d7e5...

github.com/hack-pad/go - a7e9a379e970f0c48aae47da1778213f646b5f45 authored about 2 years ago by Ali Yousefi Sabzevar <[email protected]>
strings: reuse the input string for Repeat count of 1

The existing implementation allocates a new string even when the
count is 1, where we know the o...

github.com/hack-pad/go - 9503bcae2b20d290332d00d78672881b7fcfedf0 authored about 2 years ago by Anuraag Agrawal <[email protected]>
go/build: remove unnecessary copies of package variables

These variables never change, we don't need second copies of them.

Also rename bPlusBuild to pl...

github.com/hack-pad/go - d60e51e3539986fcca331cc27f4730a4fe266149 authored about 2 years ago by Ian Lance Taylor <[email protected]>
cmd/go/testdata/script: remove reference to fixed issue

The issue referenced in work_prune.txt was fixed in CL 362754, but we
forgot to update the TODO ...

github.com/hack-pad/go - 72e07dbee086659833ef560ecce517a183d95b23 authored about 2 years ago by Bryan C. Mills <[email protected]>
path/filepath: document that WalkDir uses OS paths

Fixes #52812

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

github.com/hack-pad/go - ebbaba281393de259b751779185855001876090a authored about 2 years ago by Ian Lance Taylor <[email protected]>
all: move //go:build lines below copyright notice

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

github.com/hack-pad/go - 244127e4b40f3170317ebdb93fa8a92143a54c18 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/go/internal/vcs: replace [A-Za-z0-9_] with \w in regexps

Change-Id: Ibcc7dbb528585b019ff1b743792a52f43a4c2233
GitHub-Last-Rev: e907fb00e3202ce39475054208...

github.com/hack-pad/go - 585c438615cf1e840afc270d7632ee836ced1de8 authored about 2 years ago by jiepeng <[email protected]>
cmd/compile: don't use R25 as input for LoweredMove on ARM64

The rule uses R25 as a scratch register. If the input is R25 it
will be clobbered on the way, ca...

github.com/hack-pad/go - a813be86df74bf2a9c5b272c0b0934d196ac665d authored about 2 years ago by Cherry Mui <[email protected]>
runtime: convert timer.status to atomic type

For #53821

Change-Id: I7cb6a16626964d5023b96609d9921bfe4a679d8f
GitHub-Last-Rev: ddfce125be4aa5...

github.com/hack-pad/go - f78efc0178d51c02beff8a8203910dc0a9c6e953 authored about 2 years ago by cui fliter <[email protected]>
net/http: make DefaultTransport docs about HTTP proxy consistent

The changes improve the documentation for DefaultTransport, making
the style with how the HTTP p...

github.com/hack-pad/go - 39b31a3eb25e925cfbb57777e23d24e2a2af4d7a authored about 2 years ago by Vladimir Varankin <[email protected]>
reflect: move benchmarks to its own file

all_test.go is quite big, so let it contain tests only.

Change-Id: I5003db4a8b1e2384ea8470f5e89...

github.com/hack-pad/go - 5bbee7a095435e52322b3a7c1e028b19c22e86e5 authored about 2 years ago by Cuong Manh Le <[email protected]>
runtime: set userForced while holding gcsema

Fixes #52515

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

github.com/hack-pad/go - 6f7c9ea855b1ae97871837abf33b85aaa6731eae authored about 2 years ago by Leonard Wang <[email protected]>
syscall: simplify unsafe.Slice usage

Same as CL 429915.

Change-Id: I83f4d3bd980294d5bae387d875368b069be2d91a
Reviewed-on: https://go...

github.com/hack-pad/go - 242adb784cd64265ce803f6b0c59dbf126bcda9c authored about 2 years ago by Cuong Manh Le <[email protected]>
cmd/internal/objabi: declare HeadType String on a non-pointer receiver

objabi.HeadType is typically used as a non-pointer type, however the String function
is declared...

github.com/hack-pad/go - e084d844208621d0d9c060f8322d242adb26e845 authored about 2 years ago by Joel Sing <[email protected]>
strings: add a test case of growLen is negative

Before committing, the test coverage of strings/builder.go is 97.4%
After committing, the test...

github.com/hack-pad/go - 09f3ff174c6487bebc4a9a6adea6d74baf6a92cc authored about 2 years ago by cui fliter <[email protected]>
cmd/link: generate an error if the entry symbol cannot be found

If the entry symbol cannot be found (for example, a new port is being brought
up and no rt0 code...

github.com/hack-pad/go - 77420fa119643163f820be7752668a69100487d7 authored about 2 years ago by Joel Sing <[email protected]>
time: optimize Parse for RFC3339 and RFC3339Nano

RFC 3339 is the most common time representation,
being used in an overwhelming 57.3% of all spec...

github.com/hack-pad/go - f7396aaea0297a2e95b502a4075b0aed6efda89f authored about 2 years ago by Joe Tsai <[email protected]>
runtime: replace stringStruct with unsafe.String where appropriate

Simplify the code a bit, no significant performance changes.

name o...

github.com/hack-pad/go - 7ffbcd19876b9fbf117b09475411b8de9fa2c9dd authored about 2 years ago by Cuong Manh Le <[email protected]>
cmd/link/internal/ld, syscall: use libc based msync on darwin for Go ≥ 1.20

Direct syscalls should no longer be used on darwin. Instead, directly
call libc's msync when usi...

github.com/hack-pad/go - d36466fe2aaf51c4b38c3a2ea3164cb3a56b8059 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/link/internal/ld: drop Go 1.12 compatibility on darwin

Go 1.17 is the minimum required version for bootstrap as of Go 1.20.
Also, the package no longer...

github.com/hack-pad/go - 8df21a78027d54faa8014ce9040bd8007d1b23e0 authored about 2 years ago by Tobias Klauser <[email protected]>
go/types, types2: don't print function parameter names when showing type differences

Add a new flag 'paramNames' to typeWriter struct to control whether
function parameter names are...

github.com/hack-pad/go - dad2966a83c1597786a96a8ef407ed412575ec94 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: consistently use _UnsupportedFeature error code

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

github.com/hack-pad/go - c7a0b156592ca15612315fc71f4e287268643bfd authored about 2 years ago by Robert Griesemer <[email protected]>
types2: provide error codes to error reporting

This CL adds a suitable error code to every error reporting,
matching what go/types already does...

github.com/hack-pad/go - f4a587ba6e5c5195152f47afee2700664524c11e authored about 2 years ago by Robert Griesemer <[email protected]>
internal/syscall/windows: simplify unsafe.Slice usage

CL 428780 used unsafe.Slice instead of unsafeheader for simplifiying the
code. However, it can b...

github.com/hack-pad/go - 54182ff54a687272dd7632c3a963e036ce03cb7c authored about 2 years ago by Cuong Manh Le <[email protected]>
cmd/go: record the -buildmode flag in debug.BuildInfo

Fixes #53856

Change-Id: Ib533e9fbe063b74c81f6512464a4dac5e2af0ccc
GitHub-Last-Rev: c2ae8d6f75ba...

github.com/hack-pad/go - 59ba97bf3bc9926ace19f5e6b3be277b801b1fde authored about 2 years ago by cuiweixie <[email protected]>
net/http: convert allowQuerySemicolonsInUse to atomic type

For #53821

Change-Id: I135783bd5472011f6a74d2f5ee34ce96ff49ad2b
GitHub-Last-Rev: 4da2d67ff3d194...

github.com/hack-pad/go - b244b89d560051f8d4c4c2b90680477ec05f76c3 authored about 2 years ago by cui fliter <[email protected]>
sync: convert RWMutex.{readerCount,readerWait} to atomic type

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

github.com/hack-pad/go - e509452727b469d89a3fc4a7d1cbf9d3f110efee authored about 2 years ago by Cuong Manh Le <[email protected]>
sync/atomic: reduce inlining cost for atomic types methods

The "&x.v" cost us 2 inline cost budget, causing extra inline cost for
the caller. By taking the...

github.com/hack-pad/go - 9dd9174fa55b8078892f8a6d1863715f313d6880 authored about 2 years ago by Cuong Manh Le <[email protected]>
internal/poll, syscall: convert writev to direct libc call on openbsd (except mips64)

Add and use a writev libc wrapper instead of using syscall(2).

Updates golang/go#36435

Change-...

github.com/hack-pad/go - e2f602003bb81dc3385c488a6635e2504d0abfbd authored about 2 years ago by Tobias Klauser <[email protected]>
runtime/race: also unmap memory if TestNonGoMemory fails

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

github.com/hack-pad/go - 600db8a514600df0d3a11edc220ed7e2f51ca158 authored about 2 years ago by Tobias Klauser <[email protected]>
go/ast: use strings.Builder

Change-Id: I9c4c3ada3a8f5d8d198cc42a4afc06972ee00c61
GitHub-Last-Rev: 4ed80119e3aef2e5bcfdb58a2d...

github.com/hack-pad/go - 861885841de7b073130c04bee4eace896b0b050f authored about 2 years ago by cui fliter <[email protected]>
internal/poll: drop redundant ENOSYS in CopyFileRange

Update CL 425881 and CL 428396

I browsed the source code related to copy_file_range in the kern...

github.com/hack-pad/go - 4f3246c6e97225d43775090f272a4d5c34ffb5a8 authored about 2 years ago by Andy Pan <[email protected]>
os: add a test case of copying a file itself via io.Copy

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

github.com/hack-pad/go - 86477e507fce38128b6696bcb036da026966c9d5 authored about 2 years ago by Andy Pan <[email protected]>
syscall: add CgroupFD support for ForkExec on Linux

Implement CLONE_INTO_CGROUP feature, allowing to put a child in a
specified cgroup in a clean an...

github.com/hack-pad/go - bca17d16ca0dabbe1b533bb78f367d64e076fe73 authored about 2 years ago by Kir Kolyshkin <[email protected]>
syscall: use unsafe.Slice instead of unsafeheader package

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

github.com/hack-pad/go - f53b2111e489e61461837737cf69371a043d4fd9 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/go/internal/modload: use atomic.Pointer for Requirements.graph

Change-Id: Ie543e1b1df667cfaf3aafa4be727881461ee8b7d
GitHub-Last-Rev: ed993dbe2445c4797303138b62...

github.com/hack-pad/go - 1b196988d49401d41c20d3445d141ce0e2857979 authored about 2 years ago by Abirdcfly <[email protected]>
go/printer: reduce allocations to improve performance

First, we know that Go source files almost always weigh at least a few
kilobytes, so we can kick...

github.com/hack-pad/go - 9a5574afe62b52836145fdf1423e1ac5bdad69d2 authored about 2 years ago by Daniel Martí <[email protected]>
internal/syscall/windows: use unsafe.Slice instead of unsafeheader package

Follow CL 428777.

Change-Id: I5ce49322e92c5d6539bb08248e3366187c30dcd8
Reviewed-on: https://go-...

github.com/hack-pad/go - 218294f11ee4d988112263e1f2660acf443afdd9 authored about 2 years ago by Tobias Klauser <[email protected]>
all: transfer reflect.{SliceHeader, StringHeader} to unsafeheader.{Slice, String}

After we deprecated reflect.{SliceHeader, StringHeader}, it is recommended
to use unsafe.{Slice,...

github.com/hack-pad/go - 41089704ddafa736e73ebd54f837706e979ecb49 authored about 2 years ago by hopehook <[email protected]>
reflect: deprecate SliceHeader and StringHeader

As discussed in CL 401434 there are substantial misuses of these in the
wild, and they are a pot...

github.com/hack-pad/go - d734203e393745626d2c705aaf433b210d86c241 authored about 2 years ago by hopehook <[email protected]>
cmd/asm/internal/asm: don't set testOut in testErrors

It's set but the output is never used.

Change-Id: I36ecb9c5f087a85289529907ede9f9bfc295d739
Rev...

github.com/hack-pad/go - 76c94eb7064c9f84e41a2329efb0986cad1fb306 authored about 2 years ago by Ian Lance Taylor <[email protected]>
strconv: remove redundant type conversion

Change-Id: I25c8e8b701d6489f360fea30d09090826276b950
GitHub-Last-Rev: c2c8319dd5fa2a53fe82b10ecb...

github.com/hack-pad/go - 3c33c3b327c0ba9e756e5fa6882642acf2fd4012 authored about 2 years ago by cui fliter <[email protected]>
os: fix wrong error msg from TestDoubleCloseError

When the type assertion fails, the test mistakenly prints the expected
(rather than the actual) ...

github.com/hack-pad/go - 3585e9be670fc76e1bc4d4bfa452ee8798a127f2 authored about 2 years ago by Kir Kolyshkin <[email protected]>
os: use unsafe.{Slice,StringData} instead of unsafeheader package

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

github.com/hack-pad/go - d75e91740a2048bba4c70e878a4cd3551e7b2273 authored about 2 years ago by Tobias Klauser <[email protected]>