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/compile: special case coverage vars in pkg init order

When computing package initialization order, special case the counter
variables inserted by "cmd...

github.com/hack-pad/go - 4fb35d6cee036fa2583512940de91a03f7f029e9 authored about 2 years ago by Than McIntosh <[email protected]>
runtime: replace all uses of CtzXX with TrailingZerosXX

Replace all uses of Ctz64/32/8 with TrailingZeros64/32/8, because they
are the same and maybe du...

github.com/hack-pad/go - 7ae652b7c0cddb8f6e04bfa6f5805baac823dd64 authored about 2 years ago by Youlin Feng <[email protected]>
runtime: avoid unsafe.{Slice,String} in debuglog

CL 428157 and CL 428759 switched debuglog to using unsafe.String and
unsafe.Slice, which broke t...

github.com/hack-pad/go - c45ebef05edcb217be8f9bf1d7649763132727cc authored about 2 years ago by Michael Pratt <[email protected]>
math/rand: refactor to delay allocation of global source

This sets up for delaying the decision of which seed to use,
but this CL still keeps the origina...

github.com/hack-pad/go - 7cf06f070e56dfb6507122704bc75d697ccc350f authored about 2 years ago by Russ Cox <[email protected]>
internal/godebug: remove dependency on os

The immediate reason is that we want to use godebug from math/rand,
and math/rand importing gode...

github.com/hack-pad/go - 8dc08394f0d5f83523080e4dd99fded26b7c1ceb authored about 2 years ago by Russ Cox <[email protected]>
runtime/internal/atomic: add write barrier-enabled pointer atomics

UnsafePointer.Store, UnsafePointer.CompareAndSwap were missing,
although .StoreNoWB and .Compare...

github.com/hack-pad/go - 9fedc481ea09a0539cd2669312429ef5416a8949 authored about 2 years ago by Russ Cox <[email protected]>
errors: add test for Join

Change-Id: I77c61211a488c66f1d445c0bf01e35aaf4f83565
GitHub-Last-Rev: c411a56a3b5215e6dd093be706...

github.com/hack-pad/go - 26b48442569102226baba1d9b4a83aaee3d06611 authored about 2 years ago by fangguizhen <[email protected]>
cmd/go: fix TestScript/test_fuzz_mutate_crash for shorter fuzz names

Fixes longtest builders.

Change-Id: I8b375bcfc91695d5810493b972801df82c6c1b7c
Reviewed-on: http...

github.com/hack-pad/go - 834858fa5f6ecf980116c9ab7a2927931fe54c85 authored about 2 years ago by Russ Cox <[email protected]>
all: use Go 1.17.13 for bootstrap

Previously we used Go 1.17, but we realized thanks to tickling
a pre-Go1.17.3 bug that if we are...

github.com/hack-pad/go - 07c57aff5d6d8f1df96eb99507bd04c57d0616ca authored about 2 years ago by Russ Cox <[email protected]>
internal/fuzz: write shorter testdata corpus file names

The only purpose of using the SHA256 in the file name is
collision avoidance. Using just the fir...

github.com/hack-pad/go - b65e259e56a326295250f037efbd31f64bcdfbfe authored about 2 years ago by Russ Cox <[email protected]>
cmd/compile: fix a typo in comment

Change-Id: I9b18b29e14a47765dc09ac401989e0439fbf7d03
GitHub-Last-Rev: 7d9792ccb97f8e20bc5300cb4f...

github.com/hack-pad/go - d5ba1d8d6fe1d36294fa639f2d4936b331a543ea authored about 2 years ago by ezz-no <[email protected]>
runtime/coverage: skip more tests in short mode

Add more skips if short mode testing, since some of these tests
still seem to be timing out on s...

github.com/hack-pad/go - 3e100a22e57106021df57ff95a0a1ae6ddab2e39 authored about 2 years ago by Than McIntosh <[email protected]>
cmd/compile: fix position of fake receivers; be more careful in logopt

The src.NoXPos in fake receivers was leaking, through a series of
mishaps, all the way to logopt...

github.com/hack-pad/go - da6042e82eb7fe5ba40a5c17959a31e19a44c3e8 authored about 2 years ago by David Chase <[email protected]>
os/signal: pass *int32 to ioctl that expects pid_t

Fixes #56233

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

github.com/hack-pad/go - c83d4fba0791927e9a0b66729ee886e0f8d15249 authored about 2 years ago by Ian Lance Taylor <[email protected]>
misc/cgo/fortran: convert to Go test

Currently, the entry-point to this test is a Bash script that smoke
tests the FORTRAN compiler a...

github.com/hack-pad/go - 1e9a7550a846366eda7aaf0b3ebf870791875c17 authored about 2 years ago by Austin Clements <[email protected]>
runtime: run TestCgoSigfwd on all Unix platforms

This test was originally Linux-only, but there doesn't seem to be
anything Linux-specific in it....

github.com/hack-pad/go - 03272d14edc48783581058f06b6c17855cb5bd90 authored about 2 years ago by Austin Clements <[email protected]>
runtime: improve coverage of TestCgoSigfwd

Currently, TestCgoSigfwd will pass incorrectly if the SIGSEGV that
originates in Go mistakenly g...

github.com/hack-pad/go - a81da928b4891f111e40dfca677d3c90d1411f0d authored about 2 years ago by Austin Clements <[email protected]>
misc/cgo/testsigfwd: move to runtime/testprog/testprogcgo

This migrates testsigfwd, which uses some one-off build
infrastructure, to be part of the runtim...

github.com/hack-pad/go - dacf88e40a0a3d395988d226b5e43e046dd7e68f authored about 2 years ago by Austin Clements <[email protected]>
misc/cgo/testsigfwd: delete unused code

This code was introduced in CL 17903 but has never executed. It's also
fundamentally non-determi...

github.com/hack-pad/go - abd592b3d7c3e05eaa9dd6a69749e497b1973002 authored about 2 years ago by Austin Clements <[email protected]>
cmd/compile: move {SHL,SHR,SAR}X rules to late lower pass

This can reduce a bunch of rules.

Change-Id: Id7d644307c295a0ed16eb837b3755d1117a4fbf7
Reviewed...

github.com/hack-pad/go - 44563340cc6b6e3b8b1bf8f510dad9ee3f075633 authored about 2 years ago by Wayne Zuo <[email protected]>
cmd/compile: split 3 operand LEA in late lower pass

On newer amd64 cpus 3 operand LEA instructions are slow, CL 114655 split
them to 2 LEA instructi...

github.com/hack-pad/go - 1c783f7c68aae4effd6dcc9692a6574418556ebb authored about 2 years ago by Wayne Zuo <[email protected]>
reflect: panic when Value.Equal using two non-comparable values

Assuming the two values are valid and non-comparable, Equal should panic.

x := reflect.ValueOf...

github.com/hack-pad/go - 7ffc1e47b4e3b163f06fc33c9adbc29cb1622d47 authored about 2 years ago by hopehook <[email protected]>
flag: remove "// BUG" comment

Remove a vestigial " // BUG" comment as there is no bug in the relevant code section and comment...

github.com/hack-pad/go - 9abcc487f8b04db8fd46eaa429a7eef5a5228241 authored about 2 years ago by Zamicol <[email protected]>
cmd/link/internal/s390: return comparison directly

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

github.com/hack-pad/go - 3d92205ef5ed42147376d929e0f59c765974e345 authored about 2 years ago by cuiweixie <[email protected]>
runtime: remove redundant conversion

This appears to have been left over from a C cast during the rewrite of
malloc into Go in https:...

github.com/hack-pad/go - 85b02de083b5e337bcb581005d0efca883fdb3d9 authored about 2 years ago by Dan Kortschak <[email protected]>
reflect: add Value.Grow

The Grow method is like the proposed slices.Grow function
in that it ensures that the slice has ...

github.com/hack-pad/go - 61f0409c31cad8729d7982425d353d7b2ea80534 authored about 2 years ago by Joe Tsai <[email protected]>
os/signal: add missing newlines to TestTerminalSignal

For #37329.
For #56233.

Change-Id: Iafcddaddafd2d27fa5d535b57aaefec387f0b3f0
Reviewed-on: https...

github.com/hack-pad/go - 9ddb8ea73724d717a9bbf44be7d585ba5587504f authored about 2 years ago by Michael Pratt <[email protected]>
misc/cgo/testasan: drop test

The testasan test was added back in 2013 (CL 10126044), many years
before Go added ASAN support ...

github.com/hack-pad/go - e612d212c6836407b3274942a394b3c0d46f6e08 authored about 2 years ago by Austin Clements <[email protected]>
runtime/internal/startlinetest: add NO_LOCAL_POINTERS macro to asm function

Should fix the mayMoreStack test.

Change-Id: Iab99192629ab62ced81e95d756f2dd15f9b7e869
Reviewed...

github.com/hack-pad/go - 4e3d805a015153ca4e3382415c2474e4f954ddee authored about 2 years ago by Cherry Mui <[email protected]>
cmd/dist: drop support for pre-compiled test binaries

We haven't used this in a while and it's going to complicate later
changes to dist, so drop supp...

github.com/hack-pad/go - ae60636ab14e1bd49a8e5d818a5da8a526e59969 authored about 2 years ago by Austin Clements <[email protected]>
cmd/link: return correct default linker for the platform

If no external linker was passed with -extld, link currently assumes
that it is "gcc" which is n...

github.com/hack-pad/go - 15e26698cc206661063c07cf7f0353391604001e authored about 2 years ago by Dmitri Goutnik <[email protected]>
debug/elf: fix inccorrect value in COMPRESS_ZLIB string name

LLVM recently introduced ZSTD compression for ELF sections. The error
message when failing to re...

github.com/hack-pad/go - 8826bdd143314895230776e582043d34ea635a33 authored about 2 years ago by Florian Zenker <[email protected]>
net/http: skip TestTransportPersistConnLeak/h2

We started running this test under HTTP/2 in a recent refactoring.
It seems to be flaky for HTTP...

github.com/hack-pad/go - e9cdca9a24b63cba0560978fb48773b83805be25 authored about 2 years ago by Damien Neil <[email protected]>
cmd/go/internal/modload: return error when tidyRoots fail

Fixes #51589

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

github.com/hack-pad/go - 201759f959a6182215efe6070cf94dd4610cb3e9 authored about 2 years ago by ianwoolf <[email protected]>
os/signal: rewrite TestTerminalSignal without bash

The existing version of this test contains several races it tries to
control with sleeps. Unfort...

github.com/hack-pad/go - a8ca70ff98dd088ff6afe57eafd553aa79732086 authored about 2 years ago by Michael Pratt <[email protected]>
go/build: simplify coverage rules in deps_test

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

github.com/hack-pad/go - cba63ac03833c6eeaf4184ca2022d014b84db455 authored about 2 years ago by Russ Cox <[email protected]>
go/build: use tabs consistently in deps test rules

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

github.com/hack-pad/go - 40c63ceaabc2883b0c40356424459a8397cddb9f authored about 2 years ago by Russ Cox <[email protected]>
runtime/pprof: set Function.start_line field

Now that we plumb the start line to the runtime, we can include in pprof
files. Since runtime.Fr...

github.com/hack-pad/go - a401468b0092446d537edc2000c23e8015ce6b58 authored about 2 years ago by Michael Pratt <[email protected]>
cmd/compile,cmd/link,runtime: add start line numbers to func metadata

This adds the function "start line number" to runtime._func and
runtime.inlinedCall objects. The...

github.com/hack-pad/go - f2656f20ea420ada5f15ef06ddf18d2797e18841 authored about 2 years ago by Michael Pratt <[email protected]>
cmd/dist, misc/cgo/testsanitizers: enable msan tests on freebsd/amd64

Adjust os/arch checks to enable msan tests on freebsd/amd64.

R=go1.20

For #53298

Change-Id: I...

github.com/hack-pad/go - a4b4717f23334547f40f90f1457f3dc086259fa3 authored about 2 years ago by Dmitri Goutnik <[email protected]>
cmd/go: enable -msan on freebsd/amd64

Enable -msan flag on freebsd/amd64 and amend PIE comment in
internal/work/init.go to indicate th...

github.com/hack-pad/go - e56c93f07b445d1c123b1c46483db2d214af8cc3 authored about 2 years ago by Dmitri Goutnik <[email protected]>
runtime: add msan support on freebsd/amd64

Adjust build constraints and change the runtime to call the C mmap function
when using cgo.

R=g...

github.com/hack-pad/go - 5fde02e312796012b5ddacd79cbaafb91d329c72 authored about 2 years ago by Dmitri Goutnik <[email protected]>
image/png: optimise RGBA encoding

Optimised RGBA image encoding to PNG. Improved test coverage. Reworked benchmark.

Performance i...

github.com/hack-pad/go - 76e4833b7a3f1ab2d8f30e497d00809b1f6cf1e6 authored about 2 years ago by Alexander Efremov <[email protected]>
os: split wait6 syscall wrapper into per-platform files

There are getting to be enough special cases in this wrapper that
the increase in clarity from h...

github.com/hack-pad/go - 7feb68728dda2f9d86c0a1158307212f5a4297ce authored about 2 years ago by Bryan C. Mills <[email protected]>
cmd/link: define ELF .note section on FreeBSD

Write .note signature section when targeting FreeBSD, similar to NetBSD
and OpenBSD. This allows...

github.com/hack-pad/go - c79b2009ef0b82e9c50ced139b2fd752018da0dd authored about 2 years ago by Dmitri Goutnik <[email protected]>
cmd/go: avoid setting mod=vendor in workspace mode

Workspaces with a single module would enter mod=vendor mode even when
in workspace mode. Fix tha...

github.com/hack-pad/go - 005c78d8bbf6389d482a0bbb4e6c46719d77f59f authored about 2 years ago by Michael Matloob <[email protected]>
os/exec: reduce arbitrary sleeps in TestWaitid

If we use the "pipetest" helper command instead of "sleep",
we can use its stdout pipe to determ...

github.com/hack-pad/go - 498ee73a4b9f48c0916bb5a2bdd22ddf6aca79c6 authored about 2 years ago by Bryan C. Mills <[email protected]>
os/exec: set traceback to "system" in TestContextCancel

This will dump more goroutines if the test happens to fail.

For #50138.

Change-Id: Ifae30b5ba8...

github.com/hack-pad/go - 379a49c593ce3c2e8e57039e05e90aa466363092 authored about 2 years ago by Bryan C. Mills <[email protected]>
cmd/link: don't reset variable size when handling -X flag

The linker's -X flag allows setting/changing a string variable's
content at link time. Currently...

github.com/hack-pad/go - 9fe17a0340b1609355aa5ce1828a0cf39e0a8092 authored about 2 years ago by Cherry Mui <[email protected]>
encoding/gob: note pacakge not covered by security policy

And add a link. Resolves a comment left on http://go.dev/cl/436096
after it was submitted.

Chan...

github.com/hack-pad/go - 36ca37f3a04aac4b67aa7fe3cfe480c891d0d53f authored about 2 years ago by Roland Shoemaker <[email protected]>
debug: add top level security docs for dwarf, elf, macho, pe, and plan9obj

Adds a package level doc comment to the debug/dwarf, debug/elf,
debug/macho, debug/pe, and debug...

github.com/hack-pad/go - 1ef685fb7ba413c6f5943cc1aa61de911a7ef29a authored about 2 years ago by Roland Shoemaker <[email protected]>
crypto/x509: add blank line before package declaration

The package doc included the copying header by mistake.

Change-Id: I37ac2d14b1b8a389e6b603fbb1c...

github.com/hack-pad/go - f2acc607f8a6f2837ed302cedd70676d8ea1f463 authored about 2 years ago by Park Zhou <[email protected]>
go/types: remove mode argument from the pkgFiles helper

This mode is now always 0. Remove the unnecessary argument to better
align with types2.

Change-...

github.com/hack-pad/go - 4a0ce46917ea51a677fffe203458af4a3224f67c authored about 2 years ago by Robert Findley <[email protected]>
go/types, types2: optimize instance lookup in LookupFieldOrMethod

LookupFieldOrMethod appears as a hotspot when benchmarking gopls'
auto-completion. In particular...

github.com/hack-pad/go - ddd8bc1b074f51aa6fc73a94053f394e4bf25525 authored about 2 years ago by Robert Findley <[email protected]>
test: update test/run.go and some tests to use importcfg

Using importcfg instead of depending on the existence of .a files for
standard library packages ...

github.com/hack-pad/go - 6f445a9db55f65e55c5be29d3c506ecf3be37915 authored about 2 years ago by Michael Matloob <[email protected]>
debug/elf: validate phentsize and shentsize

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

github.com/hack-pad/go - 0ae042f977942a60d7955bc10bf654835e47e12a authored about 2 years ago by Ian Lance Taylor <[email protected]>
go/types, types2: better error if there's a field with the name of a missing method

Fixes #51025.

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

github.com/hack-pad/go - 79d0d330a9340d9e3ccb331660eb74f30e2edd01 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: remove need for invalidAST prefix in error calls

Since we already provide the error code, the prefix can be deduced
automatically.

Except for th...

github.com/hack-pad/go - 19095e109d0ae037828c519dda0af307b8a01813 authored about 2 years ago by Robert Griesemer <[email protected]>
os/signal: document behavior of SIGPIPE on non-Go thread

Fixes #56150

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

github.com/hack-pad/go - 1a7f08cf408ff4c4f05be25839a0d7c5ec28ed05 authored about 2 years ago by Ian Lance Taylor <[email protected]>
misc/cgo/test: add asan and msan arena tests

While we're here, replace a couple uses of os.Environ with cmd.Environ.

For #51317.

Change-Id:...

github.com/hack-pad/go - 6a2a11fc2836f2b4f5be1f035822ad18856f848a authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
arena: add experimental arena package

This change adds the arenas package and a function to reflect for
allocating from an arena via r...

github.com/hack-pad/go - e0d01b8467b5cb9e68758932f50c3187374011ba authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
runtime: add safe arena support to the runtime

This change adds an API to the runtime for arenas. A later CL can
potentially export it as an ex...

github.com/hack-pad/go - 7866538d250e1693bacb6e5a29c74b01588155d5 authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
runtime: make (*mheap).sysAlloc more general

This change makes (*mheap).sysAlloc take an explicit list of hints and a
boolean as to whether o...

github.com/hack-pad/go - 4c383951b9601b488486add020ad5b7f10fb3d39 authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
runtime: factor out GC assist credit accounting

No-op change in preparation for arenas.

For #51317.

Change-Id: I0777f21763fcd34957b7e709580cf2...

github.com/hack-pad/go - 987f94fa038d4a66fa174ddc4267d8718a029581 authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
runtime: factor out mheap span initialization

This change refactors span heap initialization. This change should just
be a no-op and just prep...

github.com/hack-pad/go - 69fc74f3eefc3d08b9233992e47d660bf3d449a1 authored about 2 years ago by Michael Anthony Knyszek <[email protected]>
os: use the correct constant for P_PID on NetBSD

Dragonfly and FreeBSD both used numerical values for these constants
chosen to be the same as on...

github.com/hack-pad/go - 9ec69908aaacebb0796807afa55f7682db15afb4 authored about 2 years ago by Bryan C. Mills <[email protected]>
runtime: fix invalid pointer in windows/arm64 badsignal2

Initializes the R3 register with an available address in the stack. The addressed location is us...

github.com/hack-pad/go - 4a4de1416654ec0c3cd6100fddb90a228657216a authored about 2 years ago by Bill Zissimopoulos <[email protected]>
net/http: fix some test flakes caused by test refactoring

Skip TestTransportPersistConnLeakShortBody in HTTP/2 mode;
it's flaky and was previously HTTP/1-...

github.com/hack-pad/go - 5bef938125d8604593ccacc59474db0b1403f6aa authored about 2 years ago by Damien Neil <[email protected]>
cmd/go: add Context parameter to download function

Updates #38714

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

github.com/hack-pad/go - 28a6f9cf2bccaabc69e7beb3d86161fa77f21daf authored about 2 years ago by Abirdcfly <[email protected]>
cmd/{cover,covdata}: minor code cleanups

Delete some unused code, and fix a few warnings from staticcheck.

Change-Id: I3d3a6f13dccffda06...

github.com/hack-pad/go - 0394cbed2e169ab71975109bd6a2309cc8c91b7e authored about 2 years ago by Than McIntosh <[email protected]>
all: prevent fakePC overflow on 386 in libfuzzer mode

fakePC uses hash.Sum32, which returns an uint32. However, libfuzzer
trace/hook functions declare...

github.com/hack-pad/go - 4bcf94b0232db65ed5df47e0127cdbc8866aec64 authored about 2 years ago by Cuong Manh Le <[email protected]>
go/types: add errorcalls_test, apply it, and fix errorf call sites

The errorcalls_test makes sure that we use error instead of errorf
where possible. Copied from t...

github.com/hack-pad/go - e9fd40a866e9e47ba65976d4cfeaeef7eaf76266 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: adjust errorcalls_test and apply it

Checker.errorf calls now have an error code and thus require at
least 4 arguments.

Change-Id: I...

github.com/hack-pad/go - 140bc24445f3c86b61bfb4d924e1e26f477574a2 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types: replace invalid(AST|Arg|Op) with errorf and message prefix

This brings go/types error reporting closer to types2.

Except for removing the error functions ...

github.com/hack-pad/go - 2dbc5736b269cba7c0fcd10a6f60fb49fe927d38 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/go: set dependency go versions for go install --mod=readonly mod@vers

When running go install --mod=readonly module@version. modfetch.GoSumFile
was not set, so the ch...

github.com/hack-pad/go - 2e0b97dde69cb66416844dba45c084bc13bd58fa authored about 2 years ago by Michael Matloob <[email protected]>
math/big: error on buffer length overflow in Rat.GobDecode

Fixes #56156

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

github.com/hack-pad/go - b6e7e16208be683dbf8039acc7d7dfd97888aba1 authored about 2 years ago by Ian Lance Taylor <[email protected]>
cmd/go: do not exit with non-zero code from go list -e -export

go list -e -export puts errors running build actions on the load.Package
corresponding to the fa...

github.com/hack-pad/go - 01604129aee8bfc9dd3e2fffd2ad8f772a3089ec authored about 2 years ago by Michael Matloob <[email protected]>
go/parser: simplify code (cleanup)

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

github.com/hack-pad/go - f1e50a169708db11ad03516070740ca1392f2531 authored about 2 years ago by Park Zhou <[email protected]>
os/exec: remove protection against a duplicate Close on StdinPipe

As of CL 438347, multiple concurrents calls to Close should be safe.

This removes some indirect...

github.com/hack-pad/go - 0f64a49460974fa65292d8d5bf6c8a9ceca4b780 authored about 2 years ago by Bryan C. Mills <[email protected]>
internal/coverage: minor code cleanups

Delete some unused code, various cleanups to fix staticcheck warnings.

Change-Id: Ie475d57735a8...

github.com/hack-pad/go - 1b316e3571190964d960c6a7af3e17e887c70d45 authored about 2 years ago by Than McIntosh <[email protected]>
cmd/compile: fold negation into subtraction on riscv64

Fold negation into subtraction and avoid double negation.

This removes around 500 instructions ...

github.com/hack-pad/go - 4274ffd4b8bcef4e07cfdef9405a2e33f935d079 authored about 2 years ago by Joel Sing <[email protected]>
cmd/compile: convert SLT/SLTU with constant into immediate form on riscv64

Convert SLT/SLTU with a suitably valued constant into a SLTI/SLTIU instruction.
This can reduce ...

github.com/hack-pad/go - ba8c94b5f255bf84d05cf90d3d66621ffd2e0fab authored about 2 years ago by Joel Sing <[email protected]>
cmd/compile: combine masking and zero extension on riscv64

Combine masking with a negative value and zero extension into a single
AND operation.

Change-Id...

github.com/hack-pad/go - 0ca355318f6c407edb4a82a0bb0c249ffd31840b authored about 2 years ago by Joel Sing <[email protected]>
test: add test case that caused a bogus error from gofrontend

For #56109

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

github.com/hack-pad/go - bb2a96b79df71c4b021c8611b916a2f402166d3b authored about 2 years ago by Ian Lance Taylor <[email protected]>
cmd/compile: fix missing walk pass for static initialization slice

CL 403995 fixed static init of literal contains dynamic exprs, by
ensuring their init are ordere...

github.com/hack-pad/go - fce449680a241a283f7661edb94eef5427bf595c authored about 2 years ago by Cuong Manh Le <[email protected]>
runtime: mark arenaIdx.l1 and arenaIdx.l2 methods as nosplit

Mark the "l1" and "l2" methods on "arenaIdx" with //go:nosplit, since
these methods are called f...

github.com/hack-pad/go - 506e690a26390d137b8bfc01d90121581c3d6f7a authored about 2 years ago by Than McIntosh <[email protected]>
cmd/compile: tweak inliners handling of coverage counter updates

This patch fixes up a bug in the inliner's special case code for
coverage counter updates, which...

github.com/hack-pad/go - 4a459cbbad7b9528e5f569157b157800866a4fb8 authored about 2 years ago by Than McIntosh <[email protected]>
cmd/go: support shared libraries in 'go version' on Windows

This change modifies 'go version' to support shared windows libraries.

Updates #48187

Change-I...

github.com/hack-pad/go - 742e0a9720c04b6be694ad8ea8f7831ffa606e40 authored about 2 years ago by qmuntal <[email protected]>
go/types, types2: use zero error code to indicate unset error code

Use InvalidSyntaxError where the zero error code was used before.
Fix a couple of places that di...

github.com/hack-pad/go - 388fbf287c29c73fb8cd12f8c24e101d9e790dd2 authored about 2 years ago by Robert Griesemer <[email protected]>
internal/types/errors: add InvalidSyntaxTree error

Type checkers should use InvalidSyntaxTree as error code
for invalid syntax tree errors instead ...

github.com/hack-pad/go - 578523e4a0f68e9b35984f017bb3471b0bd313b4 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: use internal/types/errors instead of local error codes

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

github.com/hack-pad/go - 6688efd5df1ef82dbe5d1f47b4c9bf4321a44126 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types: use internal/types/errors instead of local error codes

This change adds a new dependency to go/types.

Change-Id: I7e40b95c8c1e1356b638fc1aa2ef16ce91e9...

github.com/hack-pad/go - 9770b8be687278eaf80730a6bb2ddef991c3d87a authored about 2 years ago by Robert Griesemer <[email protected]>
internal/types/errors: rename UntypedNil to UntypedNilUse

This avoids a conflict when dot-importing this package in
go/types and types2.

Change-Id: Ia6fc...

github.com/hack-pad/go - 470d1462765a88ce90802eaf2898924ab0e6f123 authored about 2 years ago by Robert Griesemer <[email protected]>
internal/types/errors: export error codes

Adjust self-test accordingly.

Change-Id: I69987a306760da9eaf832275af0e9a8b6131a349
Reviewed-on:...

github.com/hack-pad/go - 49372957abb89df9616be4c5134febfa2aafd24c authored about 2 years ago by Robert Griesemer <[email protected]>
internal/types/errors: add package

The internal/types/errors package defines all error codes used by
the type checkers. This is the...

github.com/hack-pad/go - b440c15db71ba0ac0b995428a52b380814882627 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: better error for generic type decl. with missing constraint

If a generic type declaration is missing a constraint, syntactically
it is an array type declara...

github.com/hack-pad/go - 665992b5158c1c851f6e6a1ecb15a166f5ff611e authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/cgo: use -O2 when testing compiler features

Add "-O2" to all compiler/linker tests. This makes compiler/linker
feature probing better resemb...

github.com/hack-pad/go - 213504e5431891e8421a92ab72ac08981ce07516 authored about 2 years ago by Motiejus Jakštys <[email protected]>
cmd/go/internal/modload: improve error message for failing to read module listed in go.work

Run "go build ./x" in this workspace:

-- go.work --
use ./y
-- x/go.mod --
module x

...

github.com/hack-pad/go - 28a05f541dd218c40cc221db4e97898cc5a3b902 authored about 2 years ago by Zeke Lu <[email protected]>
os: use poll.fdMutex for Plan 9 files

This permits us to safely support concurrent access to files on Plan 9.
Concurrent access was al...

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

This is a follow up of CL 393656 on arm64.

This CL puts ScoreCarryChainTail before ScoreMemory ...

github.com/hack-pad/go - 669ec549b554ef7fe957bf284271ed3b7db82da1 authored about 2 years ago by eric fang <[email protected]>