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

cmd/go/internal/lockedfile/internal/filelock: remove unused type token

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

36f046d934c66fb6eb47d568e04665708c096ad7 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/compile: limit goroutine count to parallelism

When the compiler crashes, it is not uncommon to see many hundreds
of goroutines all blocked wai...

2ff5fbfbd4539d321043e6b84691ecb131402030 authored about 2 years ago by Russ Cox <[email protected]>
cmd/{cover,go}: avoid use of os.PathListSeparator in cmd/cover flag

Rework the mechanism for passing a list of output files from cmd/go to
cmd/cover when running ne...

9861e8b2fd83dec24a6ced44998dca52abd6ccff authored about 2 years ago by Than McIntosh <[email protected]>
go/types, types2: more concise error messages for cycle errors

If a cycle has length 1, don't enumerate the single cycle entry;
instead just mention "refers to...

e22af33b48447338abf6f788b3eb5b87577f95db authored about 2 years ago by Robert Griesemer <[email protected]>
runtime/coverage: apis to emit counter data under user control

Add hooks/apis to support writing of coverage counter data and
meta-data under user control (fro...

ecd112c0d1c90a12d3c87172cf969cdd1f6cbeca authored about 2 years ago by Than McIntosh <[email protected]>
cmd{cover,covdata,go}: better coverage for tests that build tools

Some of the unit tests in Go's "cmd" tree wind up building a separate
copy of the tool being tes...

f2ee3414689add84c6e6d2d3f44dacde5129b18d authored about 2 years ago by Than McIntosh <[email protected]>
runtime/coverage: improve unit tests

Add a testpoint to cover support routines used to help
implement "go test -cover".

Change-Id: I...

9d6dc32edd03f24a3ecacfcf4cdf54f561834c33 authored about 2 years ago by Than McIntosh <[email protected]>
crypto: use fmt.Appendf

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

690851ee3e48b85088698a9dbcc7dd112cef9eb5 authored about 2 years ago by cuiweixie <[email protected]>
cmd/nm: use print-style not printf-style

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

8d3631fcef414a2fae9177c9916977490252a86e authored about 2 years ago by cuiweixie <[email protected]>
cmd/cgo: use strings.TrimSuffix

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

a57639a2b2cc0d0cd5e8cec3b042156cf5bab178 authored about 2 years ago by cuiweixie <[email protected]>
cmd/cgo: delete unused code

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

ea2a2c0c2233a3aad73c4ba53cec315fb28d7a48 authored about 2 years ago by cuiweixie <[email protected]>
cmd/cgo: use strings.Contains instead of strings.Index

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

50cc2238fb4393901e5b62af3bef972c14c79a27 authored about 2 years ago by cuiweixie <[email protected]>
cmd/asm: use strings.TrimSuffix

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

09daf313b255b84e1a8e5323a4b40c1099b7ceb0 authored about 2 years ago by cuiweixie <[email protected]>
cmd/asm: delete unused func newAddr

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

090ec611dffeb896f767e6e4f20624a796c0e826 authored about 2 years ago by cuiweixie <[email protected]>
cmd/asm: optimize if statement to return directly

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

58093e8e2b5e22cf861c387d76333bccd1595065 authored about 2 years ago by cuiweixie <[email protected]>
cmd/asm: use opd.String() instead of fmt.Sprintf

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

c4a3fae27e33a5334a8f900147ae313c14694c5b authored about 2 years ago by cuiweixie <[email protected]>
os/exec: refactor goroutine error reporting

Use a separate channel to report the final error of the copying
goroutines, receiving a value on...

223a563f58f3b6f9b5d874b7e1e33d6f36992caa authored about 2 years ago by Bryan C. Mills <[email protected]>
os/exec: do not close pipes on a double-Start error

This fixes a bug introduced in CL 401834 in which calling Start twice
with pipes attached to a c...

4d6ca68a85e42c75683bc96aa540207566f54e26 authored about 2 years ago by Bryan C. Mills <[email protected]>
encoding/gob: add top level security doc

Add a slightly expanded version of the Decoder type comment to the top
level package doc, which ...

13d48bb6a1ad3787c10fbbe4265ad11672d90a37 authored about 2 years ago by Roland Shoemaker <[email protected]>
go/types, types2: consistently use "cause" instead of "reason" for error details (cleanup)

There were many more uses of the variable name "cause" than "reason"
to hold error message detai...

ffdfa9ff41a83fe1265c48b93381a8fa302cf480 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: remove (C/c)ompilerErrorMessages flag - not needed anymore

Fixes #55326.

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

5612215d32643f2a5b729730c3bfdefda78e75d1 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile: use "shifted operand %s (type %s) must be integer" for some shift errors

This matches what go/types and types2 report and it also matches
the compiler errors reported fo...

8c29881dd189bac1a3f34750c1c3fc071626b660 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile: use "cannot use %s as %s value in %s: %s" error message

This is close to what the compiler used to say, except now we say
"as T value" rather than "as t...

7997e5f2540deb03a88a2f68f83bb5e5b7d6f77e authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: use "assignment mismatch: x variables but y values" error message

This matches current compiler behavior.

For #55326.

Change-Id: I7197cf4ce21e614291a1a2e1048dd7...

435652b468f0b71266f760490896ac3e9cf46eba authored about 2 years ago by Robert Griesemer <[email protected]>
go/ast: record start and end of file in File.File{Start,End}

This change causes the parser to record the positions of the first
and last character in the fil...

f1d281fe4d6177349032776c22ab6dfb8533f0eb authored about 2 years ago by Alan Donovan <[email protected]>
cmd/dist: test cmd module on js/wasm

Most tests will be skipped anyway because 'go build' is not available,
but this ensures cmd will...

dbf174d4b9dd96b225a1f10089478f8257a54f80 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/compile/internal/base: replace io/ioutil with os package

Change-Id: Ide7618b65fcff7947809051d51b993d330e35717
GitHub-Last-Rev: 298853a82006655fe4f226cc5b...

ae3abf16e451238a25379f721613e540252e4f30 authored about 2 years ago by cui fliter <[email protected]>
testing: fail if T.Setenv is called via T.Run in a parallel test

The existing implementation can call to T.Setenv in T.Run even after
calling to T.Parallel, so I...

d6ca24477afa85a3ab559935faa4fed917911e4f authored about 2 years ago by Nobuki Fujii <[email protected]>
cmd/go: using strings.CutSuffix replace strings.HasSuffix and strings.TrimSuffix

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

7f7f27f992850a06551c2798a3b874f5d5356ae9 authored about 2 years ago by cuiweixie <[email protected]>
cmd/link/internal/loadelf: add additional relocations for riscv64

These relocations are produced by clang/llvm.

Change-Id: I4820e7ed805d1b7341023b263c167a285ca32...

bc73996facc45a2846ce6ffefad437314d554dcf authored about 2 years ago by Joel Sing <[email protected]>
os/signal: disable GNU readline to deflake TestTerminalSignal

Fixes #55903.

Change-Id: I992865277fb6526929d6c7db2b3b8d22ca0760f2
GitHub-Last-Rev: fc6f28e17c3...

d7e663d909693492e18b5d031e9ddd7e19642621 authored about 2 years ago by Zeke Lu <[email protected]>
cmd/internal/obj/ppc64: remove unnecessary opcodes

This CL removes some opcode placeholders that do not correspond
to any existing instructions and...

4350c4a13196fabd7cef04eab2f8783f6c518804 authored about 2 years ago by Archana R <[email protected]>
all: fix some typos

Change-Id: I8b28aebbb9494b2c877139a4584a5a42253e3bea
GitHub-Last-Rev: e3703fd3a50b811785df757514...

190973eb603614eef33e0a22f420217fc13a2e0a authored about 2 years ago by cui fliter <[email protected]>
cmd/compile: remove some lines from PPC64.rules

In CL 429035 Keith suggested removing some
rules that were covered by generic rules. This
follow...

6e1b769377245f706c9c1471fa95276762e8edbf authored about 2 years ago by Lynn Boger <[email protected]>
cmd/go: support new hybrid coverage instrumentation

If GOEXPERIMENT=coverageredesign is in effect, introduce a new
top-level '-cover' option to "go ...

53773a5d0892be4489b4d5e91bbc8ae61000ada7 authored about 2 years ago by Than McIntosh <[email protected]>
cmd/go: refactor package references in Builder.build

Refactor references to "a.Package" in Builder.build to be consistent,
e.g. all via the "p" helpe...

b32689f6c3156da19d469f35cc68fc155d401ef9 authored about 2 years ago by Than McIntosh <[email protected]>
cmd/go: add hook to check for GOEXPERIMENT in script tests

Add a new hook to allow script tests to check whether a specific
GOEXPERIMENT is enabled.

Updat...

06e8022ed43ea83d0d7d76366f4930903220bc25 authored about 2 years ago by Than McIntosh <[email protected]>
cmd/cover: add hybrid instrumentation mode

Add a new mode of coverage instrumentation that works as a hybrid
between purely tool-based and ...

5f18e4632897769f2abf80332c39b526697d1a1c authored about 2 years ago by Than McIntosh <[email protected]>
runtime/coverage: runtime routines to emit coverage data

This patch fleshes out the runtime support for emitting coverage data
at the end of a run of an ...

87db4ffadac291bc878cb892e05601610ca68ef5 authored about 2 years ago by Than McIntosh <[email protected]>
cmd/covdata: add tools to read/manipulate coverage data files

Add a set of helper packages for reading collections of related
meta-data and counter-data files...

7a74829858bbc2fdf8b2d8902f7df46935cf6be9 authored about 2 years ago by Than McIntosh <[email protected]>
go/types, types2: use "invalid operation: x rel y (cause)" for comparison error messages

Matches compiler behavior and is consistent with what we do with other
binary operations.

While...

dbe56ff6c7a0162f318ed2dd7331c9de82e11d6d authored about 2 years ago by Robert Griesemer <[email protected]>
time: add comment explaining >>33 in Now

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

2c4c2a5106e16a2ef51e3fc1d846e5d75d7ee6cc authored about 2 years ago by Ian Lance Taylor <[email protected]>
cmd/nm, runtime/cgo: add cgo support for freebsd/riscv64

Updates #53466

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

d268504fd90063328f484152585189db8374930d authored about 2 years ago by Mikael Urankar <[email protected]>
cmd/dist: enable cgo tests on freebsd/riscv64

Updates #53466

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

a48fc816e703989b54845c5ce557c54a45cbfe9c authored about 2 years ago by Mikael Urankar <[email protected]>
crypto: use bytes.Clone

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

56fb2cff9f127a2a7dad0b44bb5522785aa06ddf authored about 2 years ago by cuiweixie <[email protected]>
net/textproto: use bytes.Clone

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

acc5e3a0c20432199181fef2bc6204fbd11d21d0 authored about 2 years ago by cuiweixie <[email protected]>
internal: use bytes.Clone

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

a59e614aa147da1bba2616b972f26e4a0db61e4d authored about 2 years ago by cuiweixie <[email protected]>
encoding/xml: use bytes.Clone

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

09919ac3396f1de63dd5556758ac2dd10ecb9b9f authored about 2 years ago by cuiweixie <[email protected]>
runtime: add support for freebsd/riscv64

Updates #53466

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

9aa7107cb58417db4b19ea5f8773875a418270f3 authored about 2 years ago by Mikael Urankar <[email protected]>
database: use bytes.Clone

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

12bf9ff8dc7ba9d37234b5013e6541381d6cd005 authored about 2 years ago by cuiweixie <[email protected]>
crypto/rsa,crypto/internal/boring: fix PSS salt handling

Fix the coversion between our sentinel salt length variables and the
BoringSSL versions in SignR...

61ed6d5c3341f73af9529b4808dd0997c6c86ed4 authored about 2 years ago by Roland Shoemaker <[email protected]>
go/types, types2: use 2nd operand position for comparison type mismatch errors

When a comparison is invalid due to mismatched types, we only know
when we see the 2nd operand; ...

b2137e7dad4fce1f366ad432faed4f78f29ac3fa authored about 2 years ago by Robert Griesemer <[email protected]>
debug/elf: return error on reading from SHT_NOBITS sections

An SHT_NOBITS section contains no bytes and occupies no space in the
file. This change makes it ...

fa13731a45049eca149bdfd807c35d18ece6a85a authored about 2 years ago by Zeke Lu <[email protected]>
crypto/x509: use unsafe.Slice

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

a45171328635484cf9d7039ca7273bbb7984dbcc authored about 2 years ago by Ian Lance Taylor <[email protected]>
cmd/compile: use "method T.m already declared" for method redeclaration errors

Compromise between old compiler error "T.m redeclared in this block"
(where the "in this block" ...

7398c3c0c6d66a95d0c29c8fa59322e675ce7c86 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: use "unknown field f in struct literal of type S" in error messages

This is a compromise of the error reported by the compiler (quotes
around field name removed) an...

b16501c08b37235a67e2fc5b506f169152db57ae authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: use "multiple-value" instead "n-valued" in error messages

This matches current compiler behavior.

For #55326.

Change-Id: I9ebe2914323072b5454fb9af2d15c9...

3b5188ed2c38ba29aa586db7af243c3f3be27944 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: uniformly use "cannot convert X to type T"

This matches current compiler behavior.

For #55326.

Change-Id: I660bd15f13a8d9eb00fafa937f8261...

605148c0fbf68b6942d62813bdaac9fb35f6159b authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: use "and not used" instead of "but not used" in error messages

This matches longstanding compiler behavior.

Also, for unused packages, report:

`"pkg" importe...

4360fd8d6fc6cd23f56b694a91ccf751896eb712 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile: rework PPC64 Mul64uhilo lowering rules

Remove OpPPC64LoweredMuluhilo as this operation can be done
more efficiently with MULHDU and MUL...

871a3a409ac55fdcaf329596023e56be279b1950 authored about 2 years ago by Paul E. Murphy <[email protected]>
cmd/compile: make a type-specialized copy of encoding/binary.ReadUvarint

This is to get better escape analysis for a frequently-allocated object.

Change-Id: I1942a4e1c3...

caa8e1f97788d4276276d68610fadc6179a022ee authored about 2 years ago by David Chase <[email protected]>
cmd/compile: introduce "temporary" readers for more storage reuse

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

e8afb2911125ad65ddc02f7b83ab78a3e2f573b7 authored about 2 years ago by David Chase <[email protected]>
cmd/compile: use stricter rule for possible partial overlap

Partial overlaps can only happen for strict sub-pieces of larger arrays.
That's a much stronger ...

6485e8f50334f4ff369984759c22fba327a5d064 authored about 2 years ago by Keith Randall <[email protected]>
go/scanner: emit implicit semicolon tokens in correct order

Prior to this change, the scanner, in ScanComments mode, would emit
the implicit SEMICOLON token...

92a94a702469e1e57662fa2a7e6b4dc3d7161bd1 authored about 2 years ago by Alan Donovan <[email protected]>
bufio: use bytes.Clone

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

86ca550f407827f620e6c8314ec503fdb48dd898 authored about 2 years ago by cuiweixie <[email protected]>
cmd/link: fix coverage counter issue on AIX

Update the linker's XCOFF writer to handle coverage counter sections
properly; they need to be t...

bf5805eae436a1ddbad593ec0671c9a7e8c67a9a authored about 2 years ago by Than McIntosh <[email protected]>
cmd/internal/pkgpath: use MustHaveExec in TestToSymbolFunc

ToSymbolFunc executes a command using exec.Command.

Change-Id: Ic6c274bdc23050d021ec98ba6774833...

f15b81a80fc7250b436e5866d0a73c60f7b47712 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/api: skip tests on platforms that cannot exec

These tests execute commands using exec.Command.

Change-Id: I2708d6d24762fe2b2a902b1b221cc67392...

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...

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...

ff34676cdd5f2c318fa58e78c84a90b3e5a21b04 authored about 2 years ago by Marko Kungla <[email protected]>
runtime: using bytes.CutPrefix

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

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...

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...

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...

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...

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...

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...

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....

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...

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...

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...

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...

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...

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...

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...

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...

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...

072c7d4969862c84430cc2daef20a8f7f3ba78a2 authored about 2 years ago by Than McIntosh <[email protected]>
all: use strings.CutPrefix

Updates #42537

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

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...

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...

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...

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...

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...

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...

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 [...

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...

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...

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...

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...

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 ...

a3434b71a349b396bef43921732709c3a5f54f23 authored about 2 years ago by Than McIntosh <[email protected]>