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

html/template: use strings.Builder

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

github.com/hack-pad/go - 07b19bf5ab1160814ffedd448ce65c0eb6e9643a authored about 2 years ago by cuiweixie <[email protected]>
flag: use strings.Builder

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

github.com/hack-pad/go - 91a1b55489dfdc720ee4043390777e903c69222a authored about 2 years ago by cuiweixie <[email protected]>
encoding: use strings.Builder

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

github.com/hack-pad/go - ab87db8b46fcd987f0d42ecdd03c149288bc9383 authored about 2 years ago by cuiweixie <[email protected]>
debug: use strings.Builder

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

github.com/hack-pad/go - a89c3d76ba3c8f75663ebb83ebdbe8432582e9d2 authored about 2 years ago by cuiweixie <[email protected]>
bufio: use strings.Builder

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

github.com/hack-pad/go - 32f68b5ab7b4f2a5a87497816260d9b671f6c74e authored about 2 years ago by cuiweixie <[email protected]>
archive: use strings.Builder

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

github.com/hack-pad/go - 6fcd9b42e7c6f7e8be75b9d8af01181096b3f752 authored about 2 years ago by cuiweixie <[email protected]>
misc: use strings.Builder

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

github.com/hack-pad/go - c761409e01307592fc3f4e4a73dc82fe1a39c807 authored about 2 years ago by cuiweixie <[email protected]>
Revert "runtime: convert local var stop,ready at TestDebugCallUnsafePoint to atomic type"

This reverts https://go.dev/cl/427135.

Reason for revert: broke the test it modified on linux-a...

github.com/hack-pad/go - a60a3dc5bc0336bd6b499bc7e1feb459b1e4a4bc authored about 2 years ago by Daniel Martí <[email protected]>
internal/trace: use strings.Builder

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

github.com/hack-pad/go - 8a323542190ec3ba8f0ff0ec057e75e25ad1f408 authored about 2 years ago by cuiweixie <[email protected]>
Revert "internal/poll: drop redundant ENOSYS and EXDEV error checks in CopyFileRange()"

This reverts https://go.dev/cl/425881.

Reason for revert: broke make.bash on linux/amd64 with L...

github.com/hack-pad/go - 1c50484335ff8c752f872cf730f262b66280b5be authored about 2 years ago by Daniel Martí <[email protected]>
internal/syscall/unix: KernelVersion nitpicks

A few minor improvements for KernelVersion for the sake of readability.

Change-Id: I06d2df60ece...

github.com/hack-pad/go - 4c1ca42aa295d68b6172b7f49e4fb4fd14d86475 authored about 2 years ago by Kir Kolyshkin <[email protected]>
internal/syscall/unix: simplify KernelVersion

Since values[2] elements are initialized with 0, the switch statement
doesn't do anything. Remov...

github.com/hack-pad/go - e2e69ec82a7360fa8e803c0e98964e223335fe4b authored about 2 years ago by Kir Kolyshkin <[email protected]>
runtime: refactor finalizer goroutine status

Use an atomic.Uint32 to represent the state of finalizer goroutine.
fingStatus will only be chan...

github.com/hack-pad/go - bd5595d7fa4eb3e234aabeac554f2ba8f2a95790 authored about 2 years ago by Leonard Wang <[email protected]>
go/ast: add Range token.Pos to RangeStmt

For #50429

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

github.com/hack-pad/go - 67e6542467321099c0ffcf77ee660e28ec211588 authored about 2 years ago by cuiweixie <[email protected]>
internal/poll: drop redundant ENOSYS and EXDEV error checks in CopyFileRange()

The initial CL 229101 didn't limit the kernel version, but relies on error checking to
ensure th...

github.com/hack-pad/go - 40ced0c00b04a5b9832bb5b47c995c82854f26ae authored about 2 years ago by Andy Pan <[email protected]>
runtime: convert local var stop at TestAfterStress to atomic type

For #53821

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

github.com/hack-pad/go - af7f417665fb1612eb9865c7ab4992bf095148e2 authored about 2 years ago by cuiweixie <[email protected]>
runtime: convert local var started,progress at TestStackGrowth to atomic type

For #53821

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

github.com/hack-pad/go - 4ad55cd93f212eb90324ccafe5b492e404bd5e48 authored about 2 years ago by cuiweixie <[email protected]>
runtime: convert local var cunlock at doTestParallelReaders to atomic type

For #53821

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

github.com/hack-pad/go - 02700e55a57647c837618d713102c8f8214657d8 authored about 2 years ago by cuiweixie <[email protected]>
runtime: convert local var ready at TestMemmoveAtomicity to atomic type

For #53821

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

github.com/hack-pad/go - 7d83d320c0c290a259fa9dcf9ecfb3e0402be30c authored about 2 years ago by cuiweixie <[email protected]>
runtime: convert local var stop,ready at TestDebugCallUnsafePoint to atomic type

For #53821

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

github.com/hack-pad/go - 357b9225174fa227b47246e57f61a1bf66c1354c authored about 2 years ago by cuiweixie <[email protected]>
net/http: don't time out idle server connections after ReadHeaderTimeout

Consistently wait for idle connections to become readable before
starting the ReadHeaderTimeout ...

github.com/hack-pad/go - 4e7e7ae1406c70d9cc0809ec11105a55a60a0b70 authored about 2 years ago by Eliza Weisman <[email protected]>
net: precompute rfc6724policyTable in addrselect

As net package has one of the biggest init time in standard library, I have tried to improve per...

github.com/hack-pad/go - a295890c5c8ebae9cba8f01ddcee2bded7dad404 authored about 2 years ago by Tomasz Jezierski <[email protected]>
runtime: convert g.atomicstatus to internal atomic type

Note that this changes some unsynchronized operations of g.atomicstatus to synchronized operatio...

github.com/hack-pad/go - 3fbcf05d40ed870d8b7a08c7fff9623a201c1567 authored about 2 years ago by Andy Pan <[email protected]>
cmd/go: make cfg.BuildContext.ToolTags same order with build.Default.ToolTags

So it's consistent when running "go list -f '{{context.ToolTags}}'" and
printing the content of ...

github.com/hack-pad/go - be26aa70d432572599d185492f5e2b095d75cc4d authored about 2 years ago by Cuong Manh Le <[email protected]>
runtime: fast clock_gettime on FreeBSD, use physical/virtual ARM timer

as setup by the kernel on GOARCH=arm64.

Update #50947

Change-Id: I2f44be9b36e9ce8d264eccc0aa3d...

github.com/hack-pad/go - 535fe2b226096a3547321a51b36f464ab443b5cb authored about 2 years ago by Yuval Pavel Zholkover <[email protected]>
internal/syscall/unix: consolidate kernelVersion implementations

Currently, there are 3 functions returning Linux kernel version numbers.

Two of them are identi...

github.com/hack-pad/go - a73506cff560c4d95ac604f4f76d58386ca29ed9 authored about 2 years ago by Kir Kolyshkin <[email protected]>
go/types, types2: use strings.Builder instead of bytes.Buffer where possible

Also, consistently use declaration: var buf strings.Builder.
We don't change exported signatures...

github.com/hack-pad/go - 2392b7061cfc71dcdaefeb027dcce0951f697658 authored about 2 years ago by Robert Griesemer <[email protected]>
all: use strings.Builder instead of bytes.Buffer

Change-Id: I6d7213d29ade591b8366d5640833bd5a20474165
GitHub-Last-Rev: 94195832873fe6764d45ffdd6e...

github.com/hack-pad/go - 7a86ef2ad88af19642d7feaebacffd0260114d2a authored about 2 years ago by Sasha Melentyev <[email protected]>
syscall: fix skipping some tests on Linux

The kernel knob /proc/sys/kernel/unprivileged_userns_clone is
only available in Debian (and Ubun...

github.com/hack-pad/go - a0f05823e4953d137310de164b2544e41dd767d2 authored about 2 years ago by Kir Kolyshkin <[email protected]>
net: skip TestLookupPTR when LookupAddr fails with "DNS server failure"

For #38111.

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

github.com/hack-pad/go - 32964f9dce9615f7c1072e5ead9e11e6db5d2237 authored about 2 years ago by Bryan C. Mills <[email protected]>
fmt: recycle printers with large buffers

Previously when a printer had a large buffer we dropped both
the buffer and the printer. There i...

github.com/hack-pad/go - f798dc682539df0bc60b30bedce9d6f5d5192d47 authored about 2 years ago by Carlo Alberto Ferraris <[email protected]>
cmd/compile/internal/noder: optimize itabs section of runtime dicts

Currently, the itabs section for runtime dictionaries includes its own
redundant *runtime._type ...

github.com/hack-pad/go - 9fc09d2ffb4384579998b5046a1d4aee32c5ca17 authored about 2 years ago by Matthew Dempsky <[email protected]>
cmd/compile: optimise subtraction with const on riscv64

Convert subtraction from const to a negated ADDI with negative const
value, where possible. At w...

github.com/hack-pad/go - 3e11e61f3ced03d48e7d27ff6e51a3b1c0425db7 authored about 2 years ago by Joel Sing <[email protected]>
cmd/compile: negate comparision with FNES/FNED on riscv64

The FNES and FNED instructions are pseudo-instructions, which the
assembler expands to FEQS/NEG ...

github.com/hack-pad/go - 646c3eee06fa4b1b869e8183977aa46d4d4eb646 authored about 2 years ago by Joel Sing <[email protected]>
.github: add quotations around label

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

github.com/hack-pad/go - 9154d4a2a4952e35cb091fc254c9f5f1d3f0d409 authored about 2 years ago by Julie Qiu <[email protected]>
runtime: document implicit fields at the end of _func

Currently these are only implicitly documented by the code that
generates and consumes them. Add...

github.com/hack-pad/go - e4061120115d1bcdbe17f863e6559ed7b412a73d authored about 2 years ago by Michael Pratt <[email protected]>
.github: change label for vulndb and vulndb issues

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

github.com/hack-pad/go - d1681120be027579f0556dfd3b07f205cab3ff6b authored about 2 years ago by Julie Qiu <[email protected]>
cmd/internal/obj/riscv: fix comment typo

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

github.com/hack-pad/go - b226cc5ca025635175031d3ffb9596614b66bdaf authored about 2 years ago by Wayne Zuo <[email protected]>
go/types, types2: consistently write "x | y" rather than "x|y" for unions

Use the same spacing convention ("x | y") for union terms everythere,
matching the gofmt precede...

github.com/hack-pad/go - 0fda8b19328edbfab880be6cb4033ff6c81eca6d authored about 2 years ago by Robert Griesemer <[email protected]>
runtime: simplify stkframe.argMapInternal

Use an early return to reduce indentation and clarify flow.

For #54466.

Change-Id: I12ce810bea...

github.com/hack-pad/go - 55ca6a20afb718972f0625ce971081f78efe10bf authored about 2 years ago by Austin Clements <[email protected]>
runtime: consolidate stkframe and its methods into stkframe.go

The stkframe struct and its methods are strewn across different source
files. Since they actuall...

github.com/hack-pad/go - 35026f373233de30dbdb6752822d3eabf2220c11 authored about 2 years ago by Austin Clements <[email protected]>
runtime: make getStackMap a method of stkframe

This places getStackMap alongside argBytes and argMapInternal as
another method of stkframe.

Fo...

github.com/hack-pad/go - b91e3737296c815ecf2508644cc07328172640eb authored about 2 years ago by Austin Clements <[email protected]>
runtime: replace stkframe.arglen/argmap with methods

Currently, stkframe.arglen and stkframe.argmap are populated by
gentraceback under a particular ...

github.com/hack-pad/go - dbf442b1b2c28b77db288121ee3a7bc669cdc768 authored about 2 years ago by Austin Clements <[email protected]>
runtime: switch gp when jumping stacks during traceback

Currently, when traceback jumps from the system stack to a user stack
(e.g., during profiling tr...

github.com/hack-pad/go - 511cd9b8af10de9cad86be38a22e5eb2e5d4cd8d authored about 2 years ago by Austin Clements <[email protected]>
runtime: document stkframe

The meaning of some of the fields in stkframe is actually quite
subtle.

Change-Id: Iac765ff6fbf...

github.com/hack-pad/go - f00fa0b98da9f4353839da99e6f6f7f109f9954f authored about 2 years ago by Austin Clements <[email protected]>
runtime: drop redundant argument to getArgInfo

The f funcInfo argument is always the same as frame.fn, so we don't
need to pass it. I suspect t...

github.com/hack-pad/go - 5063056bd19698a92da3fd69c34ee784af62b03e authored about 2 years ago by Austin Clements <[email protected]>
runtime: drop function context from traceback

Currently, gentraceback tracks the closure context of the outermost
frame. This used to be impor...

github.com/hack-pad/go - 8be94b82ab1832ec8a07bcb16a0cb3872915dbb7 authored about 2 years ago by Austin Clements <[email protected]>
net: rfc number typo

Change-Id: I9cde2a82a395546d7620b5138cf922b2ac1c94b5
GitHub-Last-Rev: 25b8e972b044848da1a1f94cbd...

github.com/hack-pad/go - 2efb5792c3ba46f7f388130aafa79762d1b79c3d authored about 2 years ago by Mateusz Poliwczak <[email protected]>
cmd/compile: rewrite >>c<<c to &^(1<<c-1)

Fixes #54496

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

github.com/hack-pad/go - 5b1fbfba1c00be5f2e9fd9e75fb7530f218fca40 authored about 2 years ago by Keith Randall <[email protected]>
cmd/compile/internal/noder: allow OCONVNOP for identical iface conversions

In go.dev/cl/421821, I included a hack to force OCONVNOP back to
OCONVIFACE for conversions invo...

github.com/hack-pad/go - 34f0029a85af054787b279761e89db410621f1d7 authored about 2 years ago by Matthew Dempsky <[email protected]>
cmd/compile/internal/noder: refactor exprConvert code

This CL deduplicates the explicit and implicit exprConvert code paths
to have a single common fu...

github.com/hack-pad/go - 8af6c3348ef299d17aeb2ae5711af9c6205c5940 authored about 2 years ago by Matthew Dempsky <[email protected]>
cmd/compile: remove go:notinheap pragma

Updates #46731

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

github.com/hack-pad/go - 8bbb362f4c954da7c521bf2dd34b22fa3e5ab3c5 authored about 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile: make runtime/internal/sys.NotInHeap intrinsic

So next CL can get rid of go:notinheap pragma.

Updates #46731

Change-Id: Ib2e2f2d381767e11cec1...

github.com/hack-pad/go - 0ee0bb1003aa96a8ed94728784bb7faa301702d9 authored about 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile/internal/abt: use strings.Builder

Since go1.17 is now used for bootstrapping.

Change-Id: I5692ff4b38b7d9a279b20662ce5348ff34a2dde...

github.com/hack-pad/go - 0cf996a9c12d9bc5b38787c2f3b0212c39d87dd5 authored about 2 years ago by Cuong Manh Le <[email protected]>
debug/macho: use saferio to allocate load command slice

Avoid allocating large amounts of memory for corrupt input.

No test case because the problem ca...

github.com/hack-pad/go - 553f02c6ae9d9dc124559b6711a47cb3e99c6348 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/compile: new inline heuristic for struct compares

This CL changes the heuristic used to determine whether we can inline a
struct equality check or...

github.com/hack-pad/go - 6605686e3b503a1d82a526e3970ce4c93f7e2106 authored about 2 years ago by Derek Parker <[email protected]>
runtime: support MADV_DONTNEED on the BSDs and Solaris/Illumos

Like on Linux, use GODEBUG=madvdontneed=1 to enable madvise with
MADV_DONTNEED instead of MADV_F...

github.com/hack-pad/go - 19a48048543098a05efe48adb1cf8f01bfce75f1 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/compile: optimize RotateLeft8/16 on arm64

This CL optimizes RotateLeft8/16 on arm64.

For 16 bits, we form a 32 bits register by duplicati...

github.com/hack-pad/go - 121344ac338ef21d87eee4f64a60d0ae8a7f6fe3 authored about 2 years ago by ruinan <[email protected]>
go/types,types2: move notinheap tests to fixedbugs directory

So they can be added to ignored list, since the tests now require
cgo.Incomplete, which is not r...

github.com/hack-pad/go - f45c2d7e47e6dcfb69876092037257562813cc37 authored about 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile/internal/base: use runtime.KeepAlive in MapFile

Go 1.17 will be used instead of Go 1.4 as minimum required version for
bootstrap, so runtime.Kee...

github.com/hack-pad/go - 274528eca1ebbb3aa5203e77152925ca1de98601 authored about 2 years ago by Tobias Klauser <[email protected]>
cmd/compile: optimize shift ops on arm64 when the shift value is v&63

For the following code case:

var x uint64
x >> (shift & 63)

We can directly genereta `x >>...

github.com/hack-pad/go - 54c7bc9cff748e6554e53fbbbf823fdd214d0482 authored about 2 years ago by ruinan <[email protected]>
go/types: use function name position for init errors

This seems more sensible than the func keyword. With this change,
go/types uses the same error p...

github.com/hack-pad/go - 5befb24bb5cbd8ae6210b4d6a88a4437eec6fb0b authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/link: only add dummy XCOFF reference if the symbol exists

On AIX when external linking, for some symbols we need to add
dummy references to prevent the ex...

github.com/hack-pad/go - 321a220d506fe1445302706f1725017a42fc1510 authored about 2 years ago by Cherry Mui <[email protected]>
encoding/asn1: fix doc for BitString.At's return value

Fixes #53287

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

github.com/hack-pad/go - 202b7e7e76128f524142ac7d328fe8458a096dbf authored about 2 years ago by RenKanai <[email protected]>
cmd/compile: restrict //go:notinheap to runtime/internal/sys

So it won't be visible outside of runtime package. There are changes to
make tests happy:

- Fo...

github.com/hack-pad/go - ec2ea40b315e8b1a3d1dc8f7987584c4e2a00ef4 authored about 2 years ago by Cuong Manh Le <[email protected]>
hash: convert haveCastagnoli to atomic type

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

github.com/hack-pad/go - 134cd34c07862aa8618e25d1d1279b4fd127c512 authored about 2 years ago by cuiweixie <[email protected]>
math/rand: document that Source returned by NewSource implements Source64

Fixes #44488

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

github.com/hack-pad/go - 8e35910640bd190103d99d994d54b738e619c858 authored about 2 years ago by Jonathan FOng <[email protected]>
internal/types: add a test for empty string import path

Follow-up on comment in CL 427154.

Change-Id: Ib44a8e9b9129d68b794f91788c9b8c971d6c5436
Reviewe...

github.com/hack-pad/go - ccab2fbc30b0553fce54646a4da0a8645eda40a3 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: move shared tests into internal/types/testdata

This CL moves the directories check, examples, fixedbugs, and spec
from inside go/types/testdata...

github.com/hack-pad/go - 57ade1fd0bc58e726e287efc9d8e1e87c5afa5ce authored about 2 years ago by Robert Griesemer <[email protected]>
go/types: test shifts that are disabled in shared test file

CL 425735 consolidated the testdata/check/shifts.go files between
go/types and types2. Because s...

github.com/hack-pad/go - e2d2d3a4a6edf1e571a5aca1eaaf55ffcc4d6eba authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: establish type-checker specific local tests

Establish testdata/local directory for tests that are not (yet)
shared between the go/types and ...

github.com/hack-pad/go - 157aae6eed1c092fd9e8ead3527185378eb828e1 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: use go/types/testdata/fixedbugs tests

Since the fixedbugs tests are now identical between the two type checkers,
remove the local copy...

github.com/hack-pad/go - 29e360274a3b73bb77633cf68897072e8240e367 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: consolidate testdata/fixedbugs test files

Use the go/types version of testdata/fixedbugs tests where diffs
are only in the error positions...

github.com/hack-pad/go - 9649a4119c7954618ea891e71c09cb51940f39a7 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/syntax: more strict parsing of type instances

Report a syntax error if the first element of a type instance is
not actually a type (but some o...

github.com/hack-pad/go - 1be8fcdcdce01ca7cffb1fd90c1cd706c3ea4ee4 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: consolidate testdata/fixedbugs/issue46404.go

Rename .../issue46404.go1 to .../issue46404.go so that it is
not skipped anymore when running te...

github.com/hack-pad/go - d98bf7d0151c3feeceba6348519bb5c16e8ddc3f authored about 2 years ago by Robert Griesemer <[email protected]>
go/parser: match syntax parser error for unnamed type parameters

For #54511.

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

github.com/hack-pad/go - 4e32472e79e393675ba8489968539db5dc0ab650 authored about 2 years ago by Robert Griesemer <[email protected]>
go/parser: more tolerant parsing of import declarations

This is a port of CL 427156 from the syntax package's parser
to go/parser.

While at it, remove ...

github.com/hack-pad/go - d394f99f49aa9249324f7c3ef3bc77a7cc1cebf7 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/syntax: more tolerant parsing of import declarations

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

github.com/hack-pad/go - a330ca5c541e99e4561420c852b14df63574a065 authored about 2 years ago by Robert Griesemer <[email protected]>
go/parser: parse import specs the same way as the syntax parser

This results in better error recovery and allows us to use the
same tests for go/types and types...

github.com/hack-pad/go - a31c062c9fbf212b244fbece6295a2a4279459e0 authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: consolidate a test file with different syntax errors

For #54511.

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

github.com/hack-pad/go - 042f051c03d35fb0adcb0b6a7e2d78a35342ae98 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: match go/types error for invalid instantiations

Also: add a missing test.

For #54511.

Change-Id: Ie9828c6ba5186feb5a79db0d58beb2cda2beae56
Rev...

github.com/hack-pad/go - cb357835d9c62232e70f7bf0eb7b105a2901bd1a authored about 2 years ago by Robert Griesemer <[email protected]>
go/types: use singular in version error messages

This matches the majority use case as well as types2.

For #54511.

Change-Id: If800afc35db8d32c...

github.com/hack-pad/go - 6b555dc29e98ca756eb3f10edc4b8a17a72b1258 authored about 2 years ago by Robert Griesemer <[email protected]>
types2: use strings.Builder in infer.go

Permissible now because go1.17 is used for bootstrapping.

Change-Id: Ic97b0706190c3eb907da69003...

github.com/hack-pad/go - 0592ce5f69f4149da643b61e6bb1163e6046401c authored about 2 years ago by hopehook <[email protected]>
types2: use strings.Builder in errors.go

Permissible now because go1.17 is used for bootstrapping.

Change-Id: Ia6f314f9314eda1cc42002dcb...

github.com/hack-pad/go - b2110bcdde636b77412778a8c1eab6e50163ca1c authored about 2 years ago by hopehook <[email protected]>
go/parser: leave checking of LHS in short var decls to type checker

Instead of checking at parse-time that the LHS of a short variable
declaration contains only ide...

github.com/hack-pad/go - 1280ae7856d5226a7a4135621a6292240faa7657 authored about 2 years ago by Robert Griesemer <[email protected]>
go/parser: check that go/defer expressions are not parenthesized

Logic matches the code in the syntax package.
This error was missing from go/parser and go/types...

github.com/hack-pad/go - a74d46d8ff44abe409282bf1a9a9ab1b0b2cdaa0 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile: avoid "not used" errors due to bad go/defer statements

The syntax for go and defer specifies an arbitrary expression, not
a call; the call requirement ...

github.com/hack-pad/go - 489f508ccfb7f0648852e0fea882b204a5776573 authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: use go/types/testdata/check tests

Since the check tests are now identical between the two type checkers,
remove the local copy of ...

github.com/hack-pad/go - 330282a3a96099894ac0b6daceee19a483c12bbd authored about 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: consolidate testdata/check test files

Use the go/types version of testdata/check tests where the diffs
are only in the error positions...

github.com/hack-pad/go - bbaf0a514e3b0a5f432746d538a2b04110fa211f authored about 2 years ago by Robert Griesemer <[email protected]>
go/parser: adjustments to error messages

- Use "expected X" rather then "expecting X".
- Report a better error when a type argument list ...

github.com/hack-pad/go - aa5ff29dabbfdda036b8a1f5c5a80f239b876abc authored about 2 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/syntax: use BadExpr instead of fake CallExpr in bad go/defer

If the go/defer syntax is bad, using a fake CallExpr may produce
a follow-on error in the type c...

github.com/hack-pad/go - c801e4b10f708c180a3708bcf39881338691287c authored about 2 years ago by Robert Griesemer <[email protected]>
go/parser: remove validation of expression syntax, leave to type checker

Remove the code that verifies that an expression is a type or non-type
expression. For one, it c...

github.com/hack-pad/go - 9b80d3d3db126bda3eb976778cca4eb03a5a229b authored about 2 years ago by Robert Griesemer <[email protected]>
syscall: Faccessat: use faccessat2 on linux

Linux kernel 5.8 added the faccessat2 syscall taking a flags argument.
Attempt to use it in Facc...

github.com/hack-pad/go - 4048f3ffb6b74fef0a7e0e2f9d47bc944d805578 authored about 2 years ago by Kir Kolyshkin <[email protected]>
syscall: make mkall.sh accept file list

Amend the "mkall.sh -syscalls" implementation to
- prepend ./ before mksyscalls.pl;
- accept t...

github.com/hack-pad/go - 36f191abcd633a7795195adf89153cc7f373c90f authored about 2 years ago by Kir Kolyshkin <[email protected]>
cmd/compile,runtime: redo growslice calling convention

Instead of passing the original length and the new length, pass
the new length and the length in...

github.com/hack-pad/go - dd323fe205b04da837e12aabf0bebfbe171aa7c2 authored about 2 years ago by Keith Randall <[email protected]>
cmd/compile: use (*strings.Reader).Reset

Since when go1.17 is now used for bootstraping.

Change-Id: If28338fc82e6c61f057d7eb3a4c2ed77846...

github.com/hack-pad/go - 1e7f535475febc247c9e27249ee35e3a00dfa769 authored about 2 years ago by hopehook <[email protected]>
cmd/internal/pkgpath: use strings.Builder

Since when go1.17 is now used for bootstraping.

Change-Id: I5f763dec1cb152f94ab1c677d3fa26da17a...

github.com/hack-pad/go - dced3461eee8297fe2bd666f2c5146d220b2ab5b authored about 2 years ago by hopehook <[email protected]>
cmd/internal/objabi: use strings.Builder

Since when go1.17 is now used for bootstraping.

Change-Id: I5ee65aff72500a04e243238cffeae92ea65...

github.com/hack-pad/go - d31c4bc2de1105d2b77beb6447166fdae7b64e94 authored about 2 years ago by hopehook <[email protected]>
Revert "runtime: convert ncgocall to atomic type"

This reverts CL 426075.

Reason for revert: Import missing from cgocall.go.

Change-Id: Iac17e91...

github.com/hack-pad/go - ef8414101fba959c8df220ca0e544781029ce111 authored about 2 years ago by Michael Pratt <[email protected]>
runtime: convert ncgocall to atomic type

For #53821

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

github.com/hack-pad/go - 5a6db7c48fb8a1e7b6d8f59ba4e3b7ecb8c35fc7 authored about 2 years ago by cuiweixie <[email protected]>