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

runtime/pprof: disable GC during calibration test

TestCPUProfileMultithreadMagnitude compares Go's CPU profile against the
OS's accounting of the ...

5f0e5d21bb1f2c1baf15bfd90ad5b090b88e6292 authored almost 3 years ago by Rhys Hiltner <[email protected]>
test/typeparam: add test for indexing on typeparams with various constraints

Add test for indexing on variables whose types are constrained to
various kinds of types.

Chang...

c143661568dc23badd4ba04f4193658fc1fd9c33 authored almost 3 years ago by Dan Scales <[email protected]>
all: add support for c-archive and c-shared on linux/riscv64

This provides the runtime glue (_rt0_riscv64_linux_lib) for c-archive and c-shared
support, alon...

6458b2e8db7c4529248934f7e491df02d1e89318 authored almost 3 years ago by Joel Sing <[email protected]>
cmd/asm,cmd/compile,runtime: stop using X3 (aka GP) on riscv64

The X3 (aka GP) register will potentially be loaded with the __global_pointer$ symbol
during pro...

5b213178e72b6031c9ec790bf9fe784c66b397e3 authored almost 3 years ago by Joel Sing <[email protected]>
cmd/compile/internal/types2: port nomono check from go/types

Same logic as CL 357449 (including CL 360815), just ported to types2.

Updates #48098.

Change-I...

519c0a2323700934cbec97b75df92917108548be authored almost 3 years ago by Matthew Dempsky <[email protected]>
runtime: install sigPreempt signal handler for c-archive/c-shared

Fixes #49288

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

a4b2c579e92c001287fd7b549bc9f67bcf2bfe7b authored almost 3 years ago by Ian Lance Taylor <[email protected]>
cmd/compile/internal/types2: report cause for failing const conversions

Follow-up on CL 360396.

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

8f0ca7dc720b7197c91e02c8cef6e19ad95978d0 authored almost 3 years ago by Robert Griesemer <[email protected]>
go/types: report cause for failing const conversions

This is a port of CL 360795 to go/types. Error messages were adjusted
accordingly, with a TODO t...

49a00631b118834010e4d0124ccc04eeaf2cd7ac authored almost 3 years ago by Robert Findley <[email protected]>
go/types: fix indexing of generic types

This is a clean port of CL 360603 to go/types.

Change-Id: Iadb312f07e509ff83339d5525765b7b7987b...

2b81b863a258decaaca26ab4c01bfd070cc01ebe authored almost 3 years ago by Robert Findley <[email protected]>
go/types: adjust printing of type parameter in error

This is a clean port of CL 360514 to go/types.

Change-Id: Ia13638b3758b3b8017867934d09136ac5f9a...

d6f7203a3c63276680457b9794191a366a1a4401 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: fix conversions of constants to type parameter

This is a port of both CL 360396 and CL 360796 to go/types. The latter
is added to avoid introdu...

32d27527a6dfb45a98d47a4a9ac5341028d79aa1 authored almost 3 years ago by Robert Findley <[email protected]>
runtime/asan: declare asan reporting functions in C

Fixes #49287

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

a0f373ca08b05eb97e4bff7e8710c023d94231c3 authored almost 3 years ago by Ian Lance Taylor <[email protected]>
cmd/compile: remove TODO that is no longer relevant

types2 methods are now sorted in the same way as types1, so this TODO is
no longer needed. (Com...

eb63cbd2950e703ff2a6bd04330e97dc76c7923d authored almost 3 years ago by Dan Scales <[email protected]>
doc/go1.18: remove some redundancy from netip docs

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

2157498dfee125e43cc37cad622fb7d2115dd3a8 authored almost 3 years ago by Brad Fitzpatrick <[email protected]>
go/types: differently named types are not assignable

This is a clean port of CL 360274 to go/types.

Change-Id: Idfa584fab95f7226e10b1a7c5b06d56a0bf9...

42e6b5bce2d027d4fcc4a7358b97a468494855d8 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: disallow lone type parameter on RHS of type declaration

This is a clean port of CL 359177 to go/types.

Change-Id: I6c1574e3a1c23ea326eb8d4aacea0e784157...

ea403bc237657e160e628e2670bbbb62016bf2b2 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: implement singleType and structure (type)

This is a clean port of CL 359015 to go/types.

Change-Id: Iea4e3bfe0a4ae0e5a9052cb6e66c01405bd5...

80065cf2f6cdf56616c87036af91afa7f2fb2913 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: rename isNamed predicate to hasName

This is a clean port of CL 358621 to go/types.

Change-Id: I4e858b1b70cff69b6e0e76bb8a58a70ff549...

60fd3ed2b167e4bb823600ea6862758a222a48c2 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: clean up asT converters (step 2 of 2)

This is a clean port of CL 358774 to go/types.

Change-Id: Icba54336de2b8de7c2002d2a44cac8569071...

1012bc810fcd3076015edf947785e54ec6b1d766 authored almost 3 years ago by Robert Findley <[email protected]>
errors: improve wording in As doc comment

"so" didn't have an antecedent.

Change-Id: I27f7b334decea7bc34bfa3f3f2d3a79874c6fe90
Reviewed-o...

79024cf33d0cea53a0c75f428d79a9f971f12b5b authored almost 3 years ago by Josh Bleecher Snyder <[email protected]>
archive/zip: don't panic on (*Reader).Open

Previously, opening a zip with (*Reader).Open could result in a panic if
the zip contained a fil...

b24687394b55a93449e2be4e6892ead58ea9a10f authored almost 3 years ago by Jason7602 <[email protected]>
go/types: clean up asT converters (step 1 of 2)

This is a port of CL 358597 to go/types. A comment was missing in the
base of applyTypeFunc, whi...

b29182b54ac343bbc58a30357d9df908f1c3b727 authored almost 3 years ago by Robert Findley <[email protected]>
syscall: fix finalizer fd close bugs in TestFcntlFlock and TestPassFD

Currently, the syscall test suite takes very little time to run. It
stands to reason that pretty...

7c9510ef3ec4b1008b599c9c8a0ec9adaba4b663 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
go/types: avoid closure allocations in mono check

This CL replaces monoEdge's "report" field with fields "pos" and
"typ", and pushes the logic for...

c45c32b1cd6ba635fda3add12f48766fd6aef5d8 authored almost 3 years ago by Matthew Dempsky <[email protected]>
net/http: deflake TestServerKeepAlivesEnabled_h{1,2}

This test assumes that two successive TCP connections will use different
source ports. This does...

1011e26b9cec8b5e7b0b827805b2fe079904521a authored almost 3 years ago by Damien Neil <[email protected]>
cmd/compile/internal/abi: fix some typos in comments

Fix a few types in the header comment for 'ComputePadding'.

Change-Id: If38911e6dcbec571845ae44...

80a7968842895a5c05efa6464ce49b62413436c1 authored almost 3 years ago by Than McIntosh <[email protected]>
net: add ReadFromUDPAddrPort

It is now possible to do completely allocation-free UDP.

This is implemented completely separat...

c702f91b38f98c98a12b9933dce42dbd500e21fd authored almost 3 years ago by Josh Bleecher Snyder <[email protected]>
net: optimize WriteToUDPAddrPort

See the recent change optimizing WriteMsgUDPAddrPort
for an explanation of why this change inclu...

433ba582f7c72636066ec92679a325b7ee15297c authored almost 3 years ago by Josh Bleecher Snyder <[email protected]>
net: add BenchmarkWriteToReadFromUDPAddrPort

The main item of interest is the allocs.

BenchmarkWriteToReadFromUDPAddrPort-8 237735 ...

0b37bd9b3f7556d31061c6007afca59ffe2642d3 authored almost 3 years ago by Josh Bleecher Snyder <[email protected]>
cmd/compile: mark type descriptors as always dupok

The types of the two interfaces should be equal, but they aren't.
We end up with multiple descri...

79c5240799e02feeacfdde3472f22b4b0401f3c7 authored almost 3 years ago by Keith Randall <[email protected]>
debug/gosym: bulk allocate Syms

name old time/op new time/op delta
115/NewLineTable-8 80.7ns ± 1% 81....

f7a95d2c17c2b2506034d519b68a267c944f6450 authored almost 3 years ago by Josh Bleecher Snyder <[email protected]>
cmd/go: disallow profile flags when using -fuzz

Disallow the usage of coverprofile, blockprofile, cpuprofile, memprofile,
mutexprofile, and trac...

629ffebd451613b32e6b9578ff4c807791197b38 authored almost 3 years ago by Roland Shoemaker <[email protected]>
go/types: add check that code is monomorphizable

This CL adds a check to ensure that generic Go code doesn't involve
any unbounded recursive inst...

4ec52e363e93baa859cbdec23f997a489cfeca11 authored almost 3 years ago by Matthew Dempsky <[email protected]>
comd/compile/internal/types2: add missing nil check in const conversion

Follow-up on CL 360396.

Fixes #49296.

Change-Id: Ie08f86ae884da4cfd5db557cbf4f721a237dc39f
Rev...

7548327374844719bf90cce199e7fa4b43b94e2b authored almost 3 years ago by Robert Griesemer <[email protected]>
bytes: test for page boundary crosses on sep of Index

Improve TestIndexNearPageBoundary to verify needles
ending on a page boundary don't cause a segf...

4e7dd9fc08fb5aa86773b65d865719d96f67f49d authored almost 3 years ago by Paul E. Murphy <[email protected]>
go/types: generalize assignability to generic types

This is a port of CL 357917 to go/types. Some error messages in
assignability.go2 had to be adju...

62b29b035948c08041e4218d0b176d057c8a6f6f authored almost 3 years ago by Robert Findley <[email protected]>
go/types: clarify is/underIs semantics and implementation

This is a port of CL 358594 to go/types. Some code in conversions.go had
to be trivially reorgan...

af8aafd570bca4f78b434e7633bf33b6e186931c authored almost 3 years ago by Robert Findley <[email protected]>
go/types: better error messages for empty type sets

This is a clean port of CL 358175 to go/types.

Change-Id: If1b4e51d1579fd168e651d79d031335ff09c...

c406380fa984d14a1f104fd2502d832565b45eb2 authored almost 3 years ago by Robert Findley <[email protected]>
runtime: check amd64 microarchitecture level at startup

Make Go runtime throw if it's been compiled to assume instruction
set extensions that aren't ava...

8c8baad927b2fd0bca589bacab658fe0f7eb5dac authored almost 3 years ago by vpachkov <[email protected]>
cmd/compile: explain special treatment when rewrite slice literal args

Followup discussion in CL 360055.

Change-Id: I36212c2a497b152d01ed86d244d5f57bd34a64a6
Reviewed...

58fb05a24a756a9a4386faff977e6495cdccb12f authored almost 3 years ago by Cuong Manh Le <[email protected]>
cmd/compile: fix rewriting slice literal call argument

When seeing Key:Value expression in slice literal, the compiler only
needs to emit tmp var for t...

f2ff1c6074b1591c231f8f6b3394f9700cac7fad authored almost 3 years ago by Cuong Manh Le <[email protected]>
Revert "runtime: fix missing pprof labels"

This reverts CL 351751.

Reason for revert: new test is failing on many builders.

Change-Id: I0...

c6a0b6f2de9a778b03a29c656531617a606761f0 authored almost 3 years ago by Bryan C. Mills <[email protected]>
cmd/compile/internal/types2: fix indexing of generic types

Correctly track if the index expression is addressable.
Rewrote code slightly.

Fixes #49275.

C...

f801da7855d3a82cc415279262e6b1ca7df39e5f authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: adjust printing of type parameter in error

For constraint type inference failures where the type parameter doesn't
match the constraint, pr...

599de4b2c348738a5d6d2f5d475c74ac835e091a authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: fix conversions of constants to type parameter

When converting a constant to a type parameter, the result is never
constant (type parameters ar...

d39c8739662835b2f92894a8550bbcd59f83557f authored almost 3 years ago by Robert Griesemer <[email protected]>
internal/fuzz: minimize bytes to be human readable

Try to replace every byte with one of the following printable
characters: "012789ABCXYZabcxyz !\...

c3cb1ecc36512a00492f27fa3ba19e5dad6194f1 authored almost 3 years ago by Amelia Downs <[email protected]>
runtime: fix missing pprof labels

Use gp.m.curg instead of the gp when recording cpu profiler stack
traces. This ensures profiler ...

da7173a2ed637c803b8ff59d0c948e7c7d056c50 authored almost 3 years ago by Felix Geisendörfer <[email protected]>
syscall: remove GOMAXPROCS change in TestExecHelper

TestExec and TestExecHelper check for a workaround of a particular OS
bug on darwin that's trigg...

4d7bf41bebc7ad4f71150b8b57fca12aff6da144 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
A+C: add Leonard Wang (individual CLA)

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

088bb4bf4ad851a7f9a0d409e2f64c483cb7121a authored almost 3 years ago by Leonard Wang <[email protected]>
cmd/dist: add asan tests in misc/cgo/testsanitizers package

Add asan tests to check the use of Go with -asan option.

Currenly, the address sanitizer in Go ...

3ee426aefa519b0b2f814a834f5026481c187946 authored almost 3 years ago by fanzha02 <[email protected]>
doc/go1.18: add net/netip

Updates #46518

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

c1ea3395a6fdb2b66e6f445358ca40b78882adce authored almost 3 years ago by Brad Fitzpatrick <[email protected]>
cmd/go, internal/cpu: use internal/godebug in tests

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

4633b2db4bec605d7920295322d19f895ae89964 authored almost 3 years ago by Brad Fitzpatrick <[email protected]>
runtime: add padding to Linux kernel structures

Go exchanges siginfo and sigevent structures with the kernel. They
contain unions, but Go's use ...

a97c527ac491cc13f6778010a2a81c84642ea1ca authored almost 3 years ago by Rhys Hiltner <[email protected]>
runtime, syscall: add calls to asan functions

Add explicit address sanitizer instrumentation to the runtime and
syscall packages. The compiler...

6f327f7b889b81549d551ce6963067267578bd70 authored almost 3 years ago by fanzha02 <[email protected]>
net: optimize WriteMsgUDPAddrPort

This is one step towards optimizing WriteMsgUDPAddrPort.
Further steps remain, namely to avoid t...

6f1e9a9c21aec8531db40dbf61ad10fe77d7bee5 authored almost 3 years ago by Josh Bleecher Snyder <[email protected]>
net: optimize ReadMsgUDPAddrPort

Instead of implementing ReadMsgUDPAddrPort in terms of ReadMsgUDP,
do it the other way around. T...

3c61cb3dcd888fdef1c7456be144a1c4a44272a7 authored almost 3 years ago by Josh Bleecher Snyder <[email protected]>
net: add BenchmarkReadWriteMsgUDPAddrPort

The main item of interest here is the allocs.

BenchmarkReadWriteMsgUDPAddrPort-8 195920 ...

b0472aa990dfa9fb4ffe49b5af6f3d744d81ba6e authored almost 3 years ago by Josh Bleecher Snyder <[email protected]>
encoding: simplify some code

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

65f34786336201d99291e45d1631339b20c09e06 authored almost 3 years ago by Josh Bleecher Snyder <[email protected]>
syscall,internal/poll: copy arrays by assignment instead of looping

golang.org/x/sys contains similar code and also needs updating.

Change-Id: Id00177397639075d479...

926856542fd01ae2f8c05466338a139f2fdfee85 authored almost 3 years ago by Josh Bleecher Snyder <[email protected]>
cmd/compile: fix panic when refer to method of imported instantiated type

In case of reference to method call of an imported fully-instantiated
type, nameNode.Func will b...

a45457df82263c292e2c66c152a12b5df0f27f15 authored almost 3 years ago by Cuong Manh Le <[email protected]>
net/netip: add new IP address package

Co-authored-by: Alex Willmer <[email protected]> (GitHub @moreati)
Co-authored-by: Alexander Y...

a59e33224e42d60a97fa720a45e1b74eb6aaa3d0 authored almost 3 years ago by Brad Fitzpatrick <[email protected]>
net/url: consider ForceQuery in ResolveReference

Previously, when resolving references of form
(https://golang.org/?hello).ResolveReference(?)
...

81fea0b4fd3b134d4c1d121abad171e358037ce3 authored almost 3 years ago by Timothy Gu <[email protected]>
go/types, types2: remove confusing debugging output in inference error message

When type inference cannot infer type arguments it prints the list of
inferred type arguments (o...

02e5913406b2ac354695471690b79d8d4242ad8d authored almost 3 years ago by Robert Griesemer <[email protected]>
sync: add PoolStarvation benchmark

This benchmark simulates object starvation in order to force Ps to steal
objects from other Ps. ...

5f1bcd1bc29615b4366f6da8df958bd048ef89a8 authored almost 3 years ago by Ruslan Andreev <[email protected]>
runtime: disable pacer lock held assertions in tests

Fixes #49234.

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

b5a5b7bfb1ba25abf8cad8b9ad9451fb6e79d941 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
internal/fuzz: don't add duplicate corpus entries

If a identical input is already present in the corpus, don't re-add it.
This may happen when the...

2bcf1c0373195724161a9dc287e1dbc26404e4fa authored almost 3 years ago by Roland Shoemaker <[email protected]>
go/types: fix TypeName.IsAlias for type parameter names

Fixes #49213

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

80bedb848092c993182f79a946d54776dc251549 authored almost 3 years ago by zhouguangyuan <[email protected]>
cmd/compile/internal/types2: fix TypeName.IsAlias for type parameter names

This is a port of CL 359656 from go/types to types2.

For #49213.

Change-Id: Ib98f9a344c1397af9...

0ae4c7ff4a6d24ab33a0deebba74609159291b8c authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: remove subscripts from type parameter names

This is a port of CL 357814 from go/types to types2 with minor
adjustments due to small differen...

e2e910ef30f5b54018131cd24b198ced6e8215f8 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: differently named types are not assignable

When checking assignability, a value of a named type (incl. a type parameter)
can never be assig...

d2b512160e4fc9dd69947ad9566c2dab1a135694 authored almost 3 years ago by Robert Griesemer <[email protected]>
strings: align Clone output with string([]byte(""))

Add a comment how strings of length 0 are treated and
that they always will result in the return...

82f902ae8e2b7f7eff0cdb087e47e939cc296a62 authored almost 3 years ago by Martin Möhrmann <[email protected]>
test/codegen: updated arithmetic tests to verify on ppc64,ppc64le

Updated multiple tests in test/codegen/arithmetic.go to verify
on ppc64/ppc64le as well

Change-...

4056934e483c51fa046f9c2d1ee35f0385b84d91 authored almost 3 years ago by Archana R <[email protected]>
cmd/link: make ppc64le __glink_PLTresolve position-independent

This code is only generated when linking cgo internally with fixed
position code. This feature o...

732db407d30e9bd49d0907fd820207e6d646df9c authored almost 3 years ago by Paul E. Murphy <[email protected]>
testing: reduce memory used by subtest names

This is heavily based on CL 341336 by Joe Tsai and CL 351452 by
Jay Conrod.

T.Run and T.Name us...

fde4cc2a3189e2c964a0ce49de3cbe79ebedf985 authored almost 3 years ago by Bryan C. Mills <[email protected]>
reflect: avoid stack copies of hiter

Use a pointer reciever to avoid copying the hiter struct when
checking if it is intialized.

Fou...

89c527007f75884a78ffede5d493ec021e7dfcdc authored almost 3 years ago by Martin Möhrmann <[email protected]>
testing: remove redundant type conversion

Change-Id: Ib6415bb09af02e9ebc0099f50bf0fd7b572f2516
GitHub-Last-Rev: ebaa849d66efa45bd8ca50a830...

fd09e88722e0af150bf8960e95e8da500ad91001 authored almost 3 years ago by Alexander Melentyev <[email protected]>
bytes: remove redundant type conversion

Change-Id: Icafb2d9fd11b23d3acaf9df07e7f90d8bcd829fa
GitHub-Last-Rev: 2b766460554860510f3fec03a4...

3fa9ee49a077a0bcb7419110da02ca54a019f2cc authored almost 3 years ago by Alexander Melentyev <[email protected]>
go/parser: simplify parsing of array or slice constraint types

Simplify the parsing of array or slice constraint types added in CL
359134, following the port i...

243c5ae019bab96caf55dd443a0ecd128f079d9c authored almost 3 years ago by Robert Findley <[email protected]>
image/draw: rename and reorder some benchmarks

The intention is for BenchmarkFooBar functions to map 1:1 to drawFooBar
functions. Recent draw.g...

8e3d5f0bb324eebb92cc93264a63afa7ded9ab9a authored almost 3 years ago by Nigel Tao <[email protected]>
cmd/compile/internal/syntax: fix parsing of array or slice constraint types

This is a port of the idea used in CL 359134 from go/parser to syntax,
with adjustments due to t...

0bef30d28ac0b9654e5daef0fef731d7a9495214 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile: make -memprofilerate work

There are multiple things preventing the -memprofilerate flag from
working right now:

- CmdFlag...

6113dacf32db7a996bc53fa7ca0db314cd3e7378 authored almost 3 years ago by Austin Clements <[email protected]>
cmd/compile: emit sensible go_asm.h consts for big ints

Currently, the compiler will emit any const that doesn't fit in an
int64 to go_asm.h like

#...

f582778ee991e8a443e691f9a45c8f0600a748a0 authored almost 3 years ago by Austin Clements <[email protected]>
crypto/elliptic: move P-521 group logic to internal/nistec

This abstracts the clunky and not constant time math/big elliptic.Curve
compatibility layer away...

30b5d6385e91ab557978c0024a9eb90e656623b7 authored almost 3 years ago by Filippo Valsorda <[email protected]>
crypto/elliptic: use a 4-bit sliding window for P-521 ScalarMult

name old time/op new time/op delta
pkg:crypto/elliptic goos:darwin goar...

d1dceafc290865989be713cd6e235670169b73b3 authored almost 3 years ago by Filippo Valsorda <[email protected]>
crypto/elliptic: use complete addition formulas for P-521

Complete formulas don't have exceptions for P = Q or P = 0, which makes
them significantly simpl...

e39b854a6797a7159602f0d6b351ef35ebfa01d0 authored almost 3 years ago by Filippo Valsorda <[email protected]>
cmd/compile: use Structure() to get single underlying type of typeparam.

Use types2.Structure() to get single underlying type of typeparams, to
handle some unusual cases...

5d6d9f5610066584374c2dfe7624fa9f251089a0 authored almost 3 years ago by Dan Scales <[email protected]>
runtime: do not add open defer entry above a started open defer entry

Fix two defer bugs related to adding/removing open defer entries.
The bugs relate to the way tha...

8dfb4472318e151656f77623e8cabdca290c22fb authored almost 3 years ago by Dan Scales <[email protected]>
go/types: comp literals to accept type sets with single underlying types

This is a clean port of CL 357915 to go/types.

Change-Id: Idf5850a8bdcf3596c561c97bcd6053994513...

c812b97ec67ae2d674b5bb4e2fd29c7ab7fa08dc authored almost 3 years ago by Robert Findley <[email protected]>
go/types: slice exprs to accept type sets with single underlying types

This is a port of CL 357779 to go/types. A test error message was
repositioned on the sliced ope...

71e6ab8f958bf346f9e0b46c4a35310615360215 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: range clause to accept type sets with single underlying types

This is a port of CL 357778 to go/types, adjusted to include error codes
and to use the differen...

02bd226b8abb713061fcef4e53ffebc57770466b authored almost 3 years ago by Robert Findley <[email protected]>
go/types: make built-in to accept type sets with single underlying types

This is a straightforward port of CL 357776 to go/types.

Change-Id: I64220840a01f57cd7955f7d956...

3571ab58b8069fd945427ba49c4d8a702325bdb0 authored almost 3 years ago by Robert Findley <[email protected]>
crypto/elliptic: refactor P-224 field implementation

Improved readability, replaced constant time bit masked operations with
named functions, added c...

c76893d0da115a63374982196384f78fff224d55 authored almost 3 years ago by Filippo Valsorda <[email protected]>
runtime: add testing framework and basic tests for GC pacer

This change creates a formal exported interface for the GC pacer and
creates tests for it that s...

994049a9ad3d4230d0835ce36616a34a466f6718 authored almost 3 years ago by Michael Knyszek <[email protected]>
runtime: remove unnecessary argument stores for panicIndex etc. on ARM64

If register ABI is used, no need to store the arguments to stack.
I forgot them in CL 323937.

C...

5ec139fa78ac6ba3f0f715b6aa9235d36346a4a4 authored almost 3 years ago by Cherry Mui <[email protected]>
cmd/go: document that tests must not write to their source modules

Fixes #28386
Updates #48495

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

459293388ceb74d9cf61c930f02325645cd0cb7d authored almost 3 years ago by Bryan C. Mills <[email protected]>
cmd/go: make assertions more precise in TestScript/gcflags_patterns

This fixes a rare test flake observed in
https://build.golang.org/log/18e531785e7f8b3e6a6d523178...

6afdf01e5385183bea4ba2661bb4088b32626b3d authored almost 3 years ago by Bryan C. Mills <[email protected]>
runtime: pass nanotime and gomaxprocs into startCycle and endCycle explicitly

This is to facilitate testing of the pacer, since otherwise this is
accessing global state, whic...

5ec2427357f4917d0aad40cffddeea73e580129e authored almost 3 years ago by Michael Knyszek <[email protected]>
runtime: track scannable globals space

For #44167.

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

9da64156a62e4661fb5b0e64a2f196f253ce0dc5 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
runtime: track the amount of scannable allocated stack for the GC pacer

This change adds two fields to gcControllerState: stackScan, used for
pacing decisions, and scan...

9ac1ee2d464eff73077afda83677f155bd69c6b8 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
runtime: move heapLive and heapScan updates into a method

This change moves heapLive and heapScan updates on gcController into a
method for better testabi...

8e112a7c2a814de9156f68dc8b167e4ef8c98c52 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>