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/compile: don't clobber LR for tail calls

When doing a tail call the link register is live as the callee
will directly return to the calle...

9012996a9a127fd566c72baac5e7d8ba45b4865e authored almost 3 years ago by Cherry Mui <[email protected]>
cmd/compile: use SetInit instead of *PtrInit

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

95372efc4d300c54738406fb81d84a72bd8149cc authored almost 3 years ago by wdvxdr <[email protected]>
cmd/compile/internal/typecheck: record whether an interface is implicit

In preparation for capturing the implicit interface bit in export data,
thread through the IsImp...

bc0eb5789e01817823fd9707d2d4857691f898ad authored almost 3 years ago by Robert Findley <[email protected]>
go/types: remove subscripts from type parameter names

Now that we've removed the necessity for subscripts in importers, we can
effectively eliminate t...

70ffd852cc85f1c782f4f2e70518d4861939cd1b authored almost 3 years ago by Robert Findley <[email protected]>
net/http: correct Content-Length parsing for js/wasm

The Content-Length was incorrectly set to 0 for ill-formed and invalid
values. In these cases, r...

52b10ab79451df78797b87e40eb9371127bad260 authored almost 3 years ago by Charlotte Brandhorst-Satzkorn <[email protected]>
cmd/compile: fix inlining labeled switch statements

CL 357649 fixes inlining labeled FOR/RANGE loops,
we should do same translation for inlined SWIT...

c6e82e5808f4fb6da0fcc9754e29a220451a0dfd authored almost 3 years ago by wdvxdr <[email protected]>
testing: skip extra -count iterations if there are no tests

When running benchmarks with high -count and no tests (either at all or
filtered with -run), the...

2c66cab8a7b569b2dc5a7ab112ba4579f39c5dbb authored almost 3 years ago by Michael Pratt <[email protected]>
cmd/compile/internal/types2: better error messages for empty type sets

- change _TypeSet.hasTerms() to report if a type set has actual types
(excluding a "universe" ...

89cc528e430c18c6c36b8e8bbfb1bab26ed110e3 authored almost 3 years ago by Robert Griesemer <[email protected]>
testing: reference benchmark format spec

This updates the testing package documentation to reference the
specification for the benchmark ...

1ed060cf87ec887ad76c51e3f7a2148cc2a7bf9b authored almost 3 years ago by Austin Clements <[email protected]>
image/draw: improve performances if mask is *image.Alpha

The existing DrawMask method is generic and is therefore calling the At().RGBA() method for ever...

fcd2d9cd75e6307b5b72fed2201044e231bef40a authored almost 3 years ago by Olivier Wulveryck <[email protected]>
cmd/compile: factor out code to remove phi argument

CL 358117 fixed a bug that Phi's argument wasn't updated correctly after
removing a predecessor ...

7b554575e46d1df9b68f71e051c8133aaf953fb7 authored almost 3 years ago by Cuong Manh Le <[email protected]>
cmd/compile: remove Value.RemoveArg

It's only used in two places:

- The one in regalloc.go can be replaced with v.resetArgs()
- T...

f686f6a963cdfa66b6087993663f53a10272d262 authored almost 3 years ago by Cuong Manh Le <[email protected]>
cmd/compile: fix fuse pass to do CFG surgery correctly

removePred and removeArg do different things. removePred moves the last
predecessor to index k, ...

8dbf3e9393400d72d313e5616c88873e07692c70 authored almost 3 years ago by Keith Randall <[email protected]>
cmd/compile/internal/types2: comp literals to accept type sets with single underlying types

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

16318df4a225928c2f24874f6fcd11c3e13a112e authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: slice exprs to accept type sets with single underlying types

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

12e4404a0a0f03cee4fd29a6eb80379824d4aeb6 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: range clause to accept type sets with single underlying types

This generalizes range clauses. Removed some dead code and cleaned
up the surrounding bits.

Cha...

c526cf8c1ea535de6a30fc8c553c377bda4d6781 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: make built-in to accept type sets with single underlying types

This generalizes make the same way copy was generalized and eliminates
a use of optype.

Change-...

2d205ebb96460b500480d144b99d2d5f5d4c06ed authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: factor out slice elem computation for copy built-in

Implement singleUnder[String] which determines a single underlying type
for a given type: either...

3cd28baffd2c97d53cbc703a8787365e68050466 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/go: update test script for reformatted error message (fix long builds)

TBR=iant

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

b0f7eb6c0dee68c91d622cc5fcba1074626753b3 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile: prevent compiling closures more than once

Since CL 282892, functions are always compiled before closures. To do
that, when walking the clo...

85d2751d2ea38b10127df0b27d04b1a26f54bcfa authored almost 3 years ago by Cuong Manh Le <[email protected]>
doc: document new reflect.UnsafePointer function

Updates #40592

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

6c200017bf0ad9987453d5c265e5a3063ad72dc5 authored almost 3 years ago by Cuong Manh Le <[email protected]>
cmd/link: add -asan option

The -asan option causes the linker to link against the runtime/asan
package in order to use the ...

ae4d67c89dfef1cf9f30921e8f717ed5f56b6866 authored almost 3 years ago by fanzha02 <[email protected]>
cmd/compile/internal/types2: more detailed error messages for generic conversions

- slightly refactor convertibleTo and convertibleToImpl
- provide ability to return a conversion...

5d414d180bfb631d3835f819f7f524ec271f11eb authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: reduce output when describing type parameters

There's no need to say "type parameter" for a type parameter. The
name is sufficient (they are a...

76dd01f45786757a08f1e070245d174cd64559be authored almost 3 years ago by Robert Griesemer <[email protected]>
internal/poll: fix a few function names on comments

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

ff8115d1a1b3bcaadfea10f6913e9fe083013799 authored almost 3 years ago by Andy Pan <[email protected]>
cmd/compile: only look for struct type when crawling inline body

CL 356254 fixed crawling of embeddable types during inline. However, we
are too agressive, since...

9ff91b90988945c7bbe85fdef4a16d5f1af6b2c2 authored almost 3 years ago by Cuong Manh Le <[email protected]>
reflect: make Value.Pointer panic on bad notinheap pointers

Same as CL 350153 did for Value.Elem to panic on bad notinheap pointers.
While at it, also add m...

23e57e59556f42d6935b65be63b59a8b0fc0e6ad authored almost 3 years ago by Cuong Manh Le <[email protected]>
go/types, types2: add the Interface.MarkImplicit method

Add a new interface method, MarkImplicit, to allow marking interfaces as
implicit from outside t...

3beab0cd71e9e4fedba13d762ed35db04851f1be authored almost 3 years ago by Robert Findley <[email protected]>
cmd/internal/obj/ppc64: rework argument classifications

This introduces a number of new classifications which will make it
easier to generate functions ...

5a3d0f5a6361a2a1ccba19ad8d8da8b4367ea2c9 authored almost 3 years ago by Paul E. Murphy <[email protected]>
cmd/compile: fix inlining of labeled for loops

There is already a mechanism using inlgen to rename labels insided
inlined functions so that the...

b8da7e4c4c9e97b3d1ebfb07506acdd61277b988 authored almost 3 years ago by Dan Scales <[email protected]>
runtime: detangle gcPaceScavenger from the pacer

Currently gcPaceScavenger is called by gcControllerState.commit, but it
manipulates global state...

f99e40aac023d818e8c2594e5b8c075786087132 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
runtime: formalize and fix gcPercent synchronization

Currently gcController.gcPercent is read non-atomically by
gcControllerState.revise and gcTrigge...

6508fdad9d83d6792314639c9819a15894728682 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
go/types, types2: always return an underlying type from optype

Optype should never return a defined type.

Change-Id: I37b29e0c958e127e75e834e71d6392ea80827773...

8151b56c5d1de8f654a6e6789a0e607b55845c1e authored almost 3 years ago by Robert Findley <[email protected]>
net/url: add testable examples for Values funcs

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

392bb0677cfe6e6058d4f11953de80cdc20c52a8 authored almost 3 years ago by Amelia Downs <[email protected]>
net/url: add testable examples for url pkg funcs

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

24999c3a8a811807ce096c5a39c5e2f2f213d2e3 authored almost 3 years ago by Amelia Downs <[email protected]>
runtime: fix typo of pushBackAll

Fixes: #49081
Change-Id: Ie6742f1e7a60c2d92ce1283bcfaa3eac521440a1
Reviewed-on: https://go-revie...

02a36668aa13c3182d29da678764c8f4f5a9499b authored almost 3 years ago by emahiro <[email protected]>
internal/bytealg: fix Separator length check for Index/ppc64le

Modified condition in the ASM implementation of indexbody to
determine if separator length cross...

6ec9a1da2d48fdc94093feb0ea3465129e11fc24 authored almost 3 years ago by Archana R <[email protected]>
cmd/compile/internal/ssa/gen: eliminate unnecessary neg and xori on PPC64

This adds a few rules to PPC64 to eliminate some instructions:
- when an isel is used to generat...

8b0bea993d452ef7861642a9c04bae213246ded1 authored almost 3 years ago by Lynn Boger <[email protected]>
test/codegen: updated comparison test to verify on ppc64,ppc64le

Updated test/codegen/comparison.go to verify memequal is inlined
as implemented in CL 328291.

C...

8b9c0d1a79251969e46731e46e72e4e8f8998817 authored almost 3 years ago by Archana R <[email protected]>
go/types: print assignment operation for invalid operation errors

This is port of CL 357229 for types2 to go/types.

Change-Id: I35ed6b784969210a00ea5b36238df7d6b...

fca46d0b36c10250713ec0f4c9bf13d626f358d1 authored almost 3 years ago by Cuong Manh Le <[email protected]>
cmd/compile: use `else if` for mutually exclusive `if` statements

Change-Id: I43e5bb778fbba1398c8006b1644524a9885157db
GitHub-Last-Rev: fa76473ab8b207b8cfc350ca8a...

73652af80d9f33de946fc3a91c6900a81247df18 authored almost 3 years ago by hkhere <[email protected]>
runtime: retype mheap.reclaimCredit as atomic.Uintptr

[git-generate]
cd src/runtime
mv export_test.go export.go
GOROOT=$(dirname $(dirname $PWD)) rf '...

016d5eea118445f5b3ca46f85b65c6afd180c946 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
runtime: retype mheap.reclaimIndex as atomic.Uint64

[git-generate]
cd src/runtime
mv export_test.go export.go
GOROOT=$(dirname $(dirname $PWD)) rf '...

a91e976fd2cc6f1c156877eae40262d7e47c745c authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
runtime: retype mheap.pagesSweptBasis as atomic.Uint64

[git-generate]
cd src/runtime
mv export_test.go export.go
GOROOT=$(dirname $(dirname $PWD)) rf '...

1dff8f0a056517f0a8adfda663402ffb2e089281 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
runtime: retype mheap.pagesSwept as atomic.Uint64

[git-generate]
cd src/runtime
mv export_test.go export.go
GOROOT=$(dirname $(dirname $PWD)) rf '...

e90492882a7fd580b7dac88675a1c907a7441b40 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
runtime: retype mheap.pagesInUse as atomic.Uint64

[git-generate]
cd src/runtime
mv export_test.go export.go
GOROOT=$(dirname $(dirname $PWD)) rf '...

d419a80bc76cf18d321f9bf37c2deb2b8c0a1415 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
runtime: use atomic.Float64 for assist ratio

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

75b73d68b332a90e05cf45fa2c850667b3a0f777 authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
runtime/internal/atomic: add atomic types for all functions

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

3ec8d4b5ed5db74f84f8d493e4160e97481e436d authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
cmd/compile/internal/types2: use correct types when checking generic conversions

Iterate through the actual, possibly defined types of constraints
when type-checking generic con...

3ff39c5eda6aa869cbc3a19237750fa7cf495832 authored almost 3 years ago by Robert Griesemer <[email protected]>
go/internal/gcimporter: avoid setting unnecessary lines in fakeFileSet

This is a clean port of CL 357291 from x/tools.

For #46586

Change-Id: Ib22087ae7fe8477d368acd2...

4320949f36f5f523a08ce8da6bdcd35ef51b8941 authored almost 3 years ago by Robert Findley <[email protected]>
cmd/compile: fix crawling of embeddable types during inline

In CL 327872, there's a fix for crawling of embeddable types directly
reached by the user, so al...

4e565f7372494c9c46e33a35e84f0fe4fc7d2774 authored almost 3 years ago by Cuong Manh Le <[email protected]>
cmd/internal/goobj: minor dead code cleanup

Remove a bit of dead code from the Go object file reader (io.ReaderAt
no longer needed in goobj....

27a1454ee09b1923ddcf0cdc5e17b4dd7de8ea2a authored almost 3 years ago by Than McIntosh <[email protected]>
math/big: remove stray whitespace in addMulVVW on amd64

Minor leftover from CL 74851.

Change-Id: I1b56afcde3c505ba77a0f79e8ae9b01000362298
GitHub-Last-...

d2ec73c1bfb556c5736f900a8e4a07e281450eb2 authored almost 3 years ago by andig <[email protected]>
net/http/internal: return unexpected EOF on incomplete chunk read

Fixes #48861

Change-Id: I3f55bfbdc4f2cf5b33d1ab2d76e01335bb497c6f
GitHub-Last-Rev: 0ecd790b87dd...

d9421cec00a5e171699b00966bebc85a36593bf2 authored almost 3 years ago by Alexander Yastrebov <[email protected]>
cmd/compile/internal/types2: print assignment operation for invalid operation errors

When invoking check.binary for assignment operation, the expression will
be nil, thus for printi...

b091189762980836527c4aa50e3693632aea5144 authored almost 3 years ago by Cuong Manh Le <[email protected]>
cmd/compile/internal/types2: implement generic conversions

Fixes #47150.

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

4cc6a919077f27d9255536d6539118e65c1650a2 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile: allow importing and exporting of ODYNAMICTYPE

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

2be5b846650aa4674a4eca7c11f303673b69a35a authored almost 3 years ago by Keith Randall <[email protected]>
cmd/compile: substitute "". prefix with package in more import locations

The "" stand-in for the current package needs to be substituted
in more places when importing, b...

9fa85518ff84420af644b1dd82ff311a39cd99c1 authored almost 3 years ago by Keith Randall <[email protected]>
go/types, types2: always accept type parameters when running Manual test

This makes it easier to run tests on existing generic code that is
not using the `.go2` ending c...

1b24c9e42e527b93a39b6a6b16c20672dd2d9a03 authored almost 3 years ago by Robert Griesemer <[email protected]>
reflect: fix methodValueCall code pointer mismatch in Value.Pointer

This is the port of CL 356809 for Value.Pointer to fix the mismatch of
methodValueCall code poin...

07e5527249cb0b152a3807d67ea83bafd71d2496 authored almost 3 years ago by Cuong Manh Le <[email protected]>
reflect: restore Value.Pointer implementation

CL 350691 added Value.UnsafePointer and make Value.Pointer call it
internally. It has a downside...

d7149e502dfb13fdc94439eebaf1823a6c6dd84f authored almost 3 years ago by Cuong Manh Le <[email protected]>
cmd/go: add GOWORK to go env command

GOWORK will be set to the go.work file's path, if in workspace mode
or will be empty otherwise.
...

d94498470bb09bb0606b0eff3248cb5b35e1a145 authored almost 3 years ago by Michael Matloob <[email protected]>
cmd/go: support replaces in the go.work file

Add support for replace directives in the go.work file. If there are
conflicting replaces in go....

1d63052782a7535a3d4ce4557fd23fd97699b249 authored almost 3 years ago by Michael Matloob <[email protected]>
errors: mention Is methods should not call Unwrap

errors.Is internally unwraps the error until the error matches the
target. Because of this, a us...

7999fd4710e7f987e86d7b32dd9af31ced4810ba authored almost 3 years ago by Matt T. Proud <[email protected]>
internal/bytealg: port bytes.Index and bytes.Count to reg ABI on ppc64x

This change adds support for the reg ABI to the Index and Count
functions for ppc64/ppc64le.

Mo...

6c3cd5d2eb7149c9c1ced7d70c3f4157f27c1588 authored almost 3 years ago by Archana R <[email protected]>
sync: avoid a dynamic check in WaitGroup on 64-bit architectures

uint64 is guaranteed by the compiler to be aligned on 64-bit archs.
By using uint64+uint32 inste...

ad7db1f90fb66f00f5b020360aabd9f27d1c764f authored almost 3 years ago by Carlo Alberto Ferraris <[email protected]>
testing: don't allow f.Log/Logf or f.Skipped inside f.Fuzz

This change also does some refactors around how
we prevent many (*F) methods from being called
i...

982060203c26b60fd74e4fa2fd967600c65ee7fc authored almost 3 years ago by Katie Hockman <[email protected]>
runtime: remove reference to crypto/tls GODEBUG usage

crypto/tls briefly used GODEBUG. That usage was removed in CL 191999.

Change-Id: I759b6f1b02db8...

404f84d417ceed0f47e51d2c4f933a6dee96dca5 authored almost 3 years ago by Benjamin Peterson <[email protected]>
cmd/compile/internal/types2: delay expansion of underlying in typeDecl

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

Fixes #49043.

Change-Id: If389b94ec...

99fad12e4788fdf67e49dadd16571238f935b408 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: ensure named types are expanded after type-checking

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

Fixes #48703.
Fixes #48974.

Change-...

a73c6cf762560b458eb938e4461cd8debc479fd9 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: add support for inferring type instances

This is an essentially clean port of CL 356489 from go/types to types2,
with minor adjustments d...

3a07ab70a2d63e3ac1fc126529dde29852a972f5 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile, types2: better error message for invalid type assertion

This CL addresses the 2nd part of the issue below.

- For types2, now use the same error message...

254c497e5c5628be115b966808d6e76d335313a3 authored almost 3 years ago by Robert Griesemer <[email protected]>
reflect: fix methodValueCall code pointer mismatched

CL 322350 changed how to take address of assembly functions, using
abi.FuncPCABI0 intrinsic. But...

f92a3589fa04285dccab3ca7454eaaf2d0e7cde3 authored almost 3 years ago by Cuong Manh Le <[email protected]>
cmd/compile: use MOVBE instruction for GOAMD64>=v3

In CL 354670, I copied some existing rules for convenience but forgot
to update the last rule wh...

fe7df4c4d043fc65800bbec7f575c1ba50327aa9 authored almost 3 years ago by wdvxdr <[email protected]>
testing: write output to buffer when fuzzing

Fixes #48709

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

067d796549242bec2d33226c9da1e67f092a7be2 authored almost 3 years ago by Katie Hockman <[email protected]>
cmd/go: skip flaky fuzz tests

(Temporarily, until they can be fixed.)

For #49046
For #49047

Change-Id: Ib580a5e45a0955aabdfc...

6294207a1c79e318124850155c7b6c23997c8c13 authored almost 3 years ago by Bryan C. Mills <[email protected]>
cmd/internal/obj/riscv: fix trampoline calls from large functions

On riscv64, the JAL instruction is only capable of reaching +/-1MB. In the case where
a single f...

bde0463da3f31934791b0bb2ccacdf6206314073 authored almost 3 years ago by Joel Sing <[email protected]>
Revert "cmd/compile: use MOVBE instruction for GOAMD64>=v3"

This reverts CL 354670.

Reason for revert: broke make.bash with GOAMD64=v3.

Fixes #49061.

Cha...

b0351bfd7d5f0d367c27aa07789b2e6317442ece authored almost 3 years ago by Daniel Martí <[email protected]>
encoding/base64: add examples for Encode/Decode

Fixes #37595

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

1e49210ccd8fa40273d0d32e5ae898a4bee69a6e authored almost 3 years ago by 180909 <[email protected]>
runtime: ensure at least 1 tick between events

ticks might be same after tick division, although the real cputicks
is linear growth

Fixes #467...

ee92daae25029882979eb694bd7246491e364d3c authored almost 3 years ago by Meng Zhuo <[email protected]>
cmd/internal/obj/riscv: fix and enable test in short mode

The branch test only takes a few seconds so enable it in short mode. Also fix a
typo that curren...

8838a3b53fccc7b3aa83312326bfd38bcb8f2281 authored almost 3 years ago by Joel Sing <[email protected]>
go/types: delay expansion of underlying in typeDecl

Even after type-checking the RHS of a type declaration, we may not yet
be able to expand, if the...

eba0e866fafe3f8223d654a29fb953e02c07364a authored about 3 years ago by Robert Findley <[email protected]>
go/types: ensure named types are expanded after type-checking

Rather than using Checker.later in newNamed, add a Checker.defTypes
field to track named types t...

323e009c757229bdf58f68fde1c5bf07e9e65b61 authored about 3 years ago by Robert Findley <[email protected]>
go/types: add support for inferring type instances

Add constraint type inference for type instances, to be consistent with
inference of function va...

73971784dc586a5db3b81dfdd41954f650d493ac authored about 3 years ago by Robert Findley <[email protected]>
net/url: fix stale RFC 3986 links

The URLs for RFC 3986 have been changed from:
http://tools.ietf.org/html/rfc3986
to:
https:/...

3befaf0cdb18420f45acfa7cee725297aa550faf authored about 3 years ago by jiahua wang <[email protected]>
bufio: use underlying ReadFrom even when data is buffered

When (*bufio.Writer).ReadFrom is called with a partially filled buffer,
fill out and flush the b...

425db64811285fd0b35ed12eaed7568ec547da78 authored about 3 years ago by Damien Neil <[email protected]>
cmd/compile/internal/ssagen: set BitLen32 as intrinsic on PPC64

It was noticed through some other investigation that BitLen32
was not generating the best code a...

33b3260c1e765ef66500ce155c6d5a526d8852e9 authored about 3 years ago by Lynn Boger <[email protected]>
syscall/js: remove Wrapper interface

This change removes the js.Wrapper interface for performance reasons.
See proposal #44006 for de...

6c0daa733192031eab23d09ed6515c4cd959aa92 authored about 3 years ago by Richard Musiol <[email protected]>
html/template: remove unused `mode` field on `Tree` struct

This changes Go, to remove this unused field on the `Tree` struct. Which seems to replaced by th...

267abbe3ba9dda96a8694e8aad8892e3ba2be60e authored about 3 years ago by Gusted <[email protected]>
cmd/compile: allow importing and exporting of ODYANMICDOTTYPE[2]

Fixes #49027

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

394a1ad2956f0397e83b5f0234ea7e972a307848 authored about 3 years ago by Keith Randall <[email protected]>
reflect: add Value.UnsafePointer

Allowing eliminates a class of possible misuse of unsafe.Pointer, and
allow callers to migrate f...

4d550727f8b85e9f8866f22c8a02b8f56fa64159 authored about 3 years ago by Cuong Manh Le <[email protected]>
reflect: add test that method values have the same code pointers

Updates #40592

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

543a513304c35d42b162790a6e70191aac68225c authored about 3 years ago by Cuong Manh Le <[email protected]>
reflect: correct documentation of Value.UnsafeAddr

The doc mentions that "UnsafeAddr returns a _pointer_ to v's data", but
it returns a uintptr ins...

42515418a99f2540427a5d32189f6d44fb06939e authored about 3 years ago by Cuong Manh Le <[email protected]>
cmd/go: fix broken fuzz test

Fixes test breakage caused by CL 355691.

Change-Id: I85fcb1491dc39c45342f4cae91fdfda6aedecd1a
R...

417100ec1b08bb1046e207fd08de105944668d27 authored about 3 years ago by Katie Hockman <[email protected]>
cmd/compile: use MOVBE instruction for GOAMD64>=v3

encoding/binary benchmark on my laptop:
name old time/op new time/op ...

3e5cc4d6f6befb284d7b2a5142a8b576bf5970ea authored about 3 years ago by wdvxdr <[email protected]>
cmd/asm: report an error when trying to do spectre on 386

The compiler refuses to do spectre mitigation on 386, but the
assembler doesn't. Fix that.

Fixe...

c091767d87b7a6ef6016286bc0fae8add59b92de authored about 3 years ago by Keith Randall <[email protected]>
cmd/compile: allow inlining labeled for-statement and switch-statement

After CL 349012 and CL 350911, we can fully handle these
labeled statements, so we can allow the...

74acbaf94ab3c7aaa7e22fda4f90920e90f11ead authored about 3 years ago by wdvxdr <[email protected]>
cmd/compile, types2: avoid confusing follow-on error in invalid type assertion

This CL avoids a useless follow-on error (that gets reported before the
actual error due to sour...

cf51fb5d680a9a1ca98af3361e65722d07bff111 authored about 3 years ago by Robert Griesemer <[email protected]>
go/types, types2: add test case for missing return

The respective issue was fixed in types2 with CL 356189;
and the problem didn't exist in go/type...

fa7d11a0e9c0ed469111ba5fdd86f7462a48ef49 authored about 3 years ago by Robert Griesemer <[email protected]>
test: add a test for parameterized embedded field

Make sure that an embedded field like "MyStruct[T]" works and can be
referenced via the name MyS...

640a49b8d45760b7c965fc1529dffc8e000cc846 authored about 3 years ago by Dan Scales <[email protected]>