1. 01 Nov, 2019 12 commits
  2. 31 Oct, 2019 11 commits
  3. 30 Oct, 2019 12 commits
  4. 29 Oct, 2019 5 commits
    • Cherry Zhang's avatar
      runtime: clear m.gsignal when the M exits · 15ea61c5
      Cherry Zhang authored
      On some platforms (currently ARM and ARM64), when calling into
      VDSO we store the G to the gsignal stack, if there is one, so if
      we receive a signal during VDSO we can find the G.
      
      When an M exits, it frees the gsignal stack. But m.gsignal.stack
      still points to that stack. When we call nanotime on this M, we
      will write to the already freed gsignal stack, which is bad.
      Prevent this by unlinking the freed stack from the M.
      
      Should fix #35235.
      
      Change-Id: I338b1fc8ec62aae036f38afaca3484687e11a40d
      Reviewed-on: https://go-review.googlesource.com/c/go/+/204158
      Run-TryBot: Cherry Zhang <cherryyz@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      15ea61c5
    • Robert Griesemer's avatar
      go/types: clarify documentation · 20d621d2
      Robert Griesemer authored
      For a discussion, see the issue.
      
      Fixes #35189.
      
      Change-Id: I46c87a45bddf2ea8c33bc101d58880b7922e0f78
      Reviewed-on: https://go-review.googlesource.com/c/go/+/204044Reviewed-by: default avatarDmitri Shuralyov <dmitshur@golang.org>
      20d621d2
    • Keith Randall's avatar
      cmd/compile: fix typing of IData opcodes · 70331a31
      Keith Randall authored
      The rules for extracting the interface data word don't leave
      the result typed correctly. If I do i.([1]*int)[0], the result
      should have type *int, not [1]*int. Using (IData x) for the result
      keeps the typing of the original top-level Value.
      
      I don't think this would ever cause a real codegen bug, bug fixing it
      at least makes the typing shown in ssa.html more consistent.
      
      Change-Id: I239d821c394e58347639387981b0510d13b2f7b7
      Reviewed-on: https://go-review.googlesource.com/c/go/+/204042
      Run-TryBot: Keith Randall <khr@golang.org>
      Reviewed-by: default avatarDavid Chase <drchase@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      70331a31
    • Jay Conrod's avatar
      cmd/go: delete internal packages moved to x/mod · 1fb7d547
      Jay Conrod authored
      This change deletes several internal packages, replaces imports to
      them with the equivalent golang.org/x/mod packages, updates x/mod, and
      re-runs 'go mod vendor'.
      
      Packages are replaced as follows:
      
      cmd/go/internal/modfile → golang.org/x/mod/modfile
      cmd/go/internal/module → golang.org/x/mod/module
      cmd/go/internal/semver → golang.org/x/mod/semver
      cmd/go/internal/sumdb → golang.org/x/mod/sumdb
      cmd/go/internal/dirhash → golang.org/x/mod/sumdb/dirhash
      cmd/go/internal/note → golang.org/x/mod/sumdb/note
      cmd/go/internal/tlog → golang.org/x/mod/sumdb/tlog
      
      Updates #31761
      Fixes #34924
      
      Change-Id: Ie3bf677bb0be49af969f654a0214243a6547eb57
      Reviewed-on: https://go-review.googlesource.com/c/go/+/202698
      Run-TryBot: Jay Conrod <jayconrod@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
      1fb7d547
    • Dan Scales's avatar
      cmd/compile: handle some missing cases of non-SSAable values for args of open-coded defers · cc47b0d2
      Dan Scales authored
      In my experimentation, I had found that most non-SSAable expressions were
      converted to autotmp variables during AST evaluation. However, this was not true
      generally, as witnessed by issue #35213, which has a non-SSAable field reference
      of a struct that is not converted to an autotmp. So, I fixed openDeferSave() to
      handle non-SSAable nodes more generally, and make sure that these non-SSAable
      expressions are not evaluated more than once (which could incorrectly repeat side
      effects).
      
      Fixes #35213
      
      Change-Id: I8043d5576b455e94163599e930ca0275e550d594
      Reviewed-on: https://go-review.googlesource.com/c/go/+/203888
      Run-TryBot: Dan Scales <danscales@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarKeith Randall <khr@golang.org>
      cc47b0d2