1. 06 Jan, 2020 1 commit
  2. 04 Jan, 2020 4 commits
  3. 03 Jan, 2020 11 commits
  4. 02 Jan, 2020 5 commits
  5. 31 Dec, 2019 1 commit
    • Tobias Klauser's avatar
      internal/poll: use correct fcntl implementations · bbd25d26
      Tobias Klauser authored
      Use the libc fcntl (via syscall.fcntl) on aix and solaris like it is
      already done for darwin.
      
      For the syscall-based fcntl implementation use FcntlSyscall from
      internal/syscall/unix in order to get fcntl64 on 32-bit Linux
      systems.
      
      On aix, fcntl with F_DUPFD_CLOEXEC is not supported. Thus, defined
      F_DUPFD_CLOEXEC = 0 in the syscall package and check its value before
      calling fcntl(fd, syscall.F_DUPFD_CLOEXEC, 0).
      
      On js/wasm, fcntl is not supported thus let its implementation return
      ENOSYS directly.
      
      Updates #36211
      
      Change-Id: I96a2ea79e5c4eed2fefd94d0aefd72c940825682
      Reviewed-on: https://go-review.googlesource.com/c/go/+/212278
      Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      bbd25d26
  6. 30 Dec, 2019 3 commits
  7. 27 Dec, 2019 3 commits
  8. 26 Dec, 2019 2 commits
    • Michael Anthony Knyszek's avatar
      runtime: disable pageAlloc tests on OpenBSD in short mode · cd1b9c1d
      Michael Anthony Knyszek authored
      This change disables pageAlloc tests on OpenBSD in short mode because
      pageAlloc holds relatively large virtual memory reservations and we make
      two during the pageAlloc tests. The runtime may also be carrying one
      such reservation making the virtual memory requirement for testing the
      Go runtime three times as much as just running a Go binary.
      
      This causes problems for folks who just want to build and test Go
      (all.bash) on OpenBSD but either don't have machines with at least 4ish
      GiB of RAM (per-process virtual memory limits are capped at some
      constant factor times the amount of physical memory) or their
      per-process virtual memory limits are low for other reasons.
      
      Fixes #36210.
      
      Change-Id: I8d89cfde448d4cd2fefff4ad6ffed90de63dd527
      Reviewed-on: https://go-review.googlesource.com/c/go/+/212177
      Run-TryBot: Michael Knyszek <mknyszek@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
      cd1b9c1d
    • Tobias Klauser's avatar
      internal/poll: use fcntl64 on 32-bit GNU/Linux systems · 075c20ce
      Tobias Klauser authored
      Use FcntlSyscall from internal/syscall/unix to get fcntl64 on 32-bit
      Linux systems.
      
      Updates #36211
      
      Change-Id: If48a6e09606ca9f7f6e22f3e8dc9a25fb3ccaf65
      Reviewed-on: https://go-review.googlesource.com/c/go/+/212537
      Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      075c20ce
  9. 24 Dec, 2019 5 commits
  10. 23 Dec, 2019 2 commits
  11. 20 Dec, 2019 3 commits
    • Austin Clements's avatar
      doc/go1.14: more runtime/compiler release notes · 4d5bb9c6
      Austin Clements authored
      This is based on reading through every commit message to runtime and
      cmd/{compile,link,internal,asm} since Go 1.13.
      
      Change-Id: I253b1a70ed265f15180fa20c191ceeafa6612ac4
      Reviewed-on: https://go-review.googlesource.com/c/go/+/211977Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
      4d5bb9c6
    • Ian Lance Taylor's avatar
      misc/cgo/test: tweak to pass with GCC 10 · b234fdb5
      Ian Lance Taylor authored
      The test for issue 8945 was marked to only run on gccgo, but there was
      no reason for that. It broke for gccgo using GCC 10, because GCC 10
      defaults to -fno-common. Make the test run on gc, and split it into
      test.go and testx.go to make it work with GCC 10.
      
      The test for issue 9026 used two identical structs which GCC 10 turns
      into the same type. The point of the test is not that the structs are
      identical, but that they are handled in a particular order. So make
      them different.
      
      Updates #8945
      Updates #9026
      
      Change-Id: I000fb02f88f346cfbbe5dbefedd944a2c64e8d8e
      Reviewed-on: https://go-review.googlesource.com/c/go/+/211217
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarThan McIntosh <thanm@google.com>
      b234fdb5
    • Dan Scales's avatar
      runtime: make sure BP is saved in nanotime1/walltime1, else frame pointer may not be preserved · 21713f41
      Dan Scales authored
      nanotime1 and walltime1 do not preserve BP on linux amd64. Previously, this
      did not cause a problem, because nanotime/walltime do preserve the BP. But now
      with mid-stack inlining, nanotime/walltime are usually inlined, so BP is not
      preserved. So, the BP is now wrong in any function after a call to
      nanotime()/walltime() on amd64. That means the frame pointer on the stack can
      be wrong for any further function call made after the nanotime() call (notably
      runtime.main and various GC functions). [386 doesn't use framepointer.]
      
      Fix is to set a frame size of 8 for nanotime1 and walltime1, which means the
      standard prolog/epilog that saves/restore BP in the stack frame is added.
      
      I noticed this while investigating issue 16638 (use frame pointers for
      runtime.Callers). This change would needed for progress on that issue (which
      doesn't have a high priority). Verified that this fix works/is useful for issue
      16638.
      
      Change-Id: I19e19ef2c1a517d737a34928baae034f2eb0b2c2
      Reviewed-on: https://go-review.googlesource.com/c/go/+/212079
      Run-TryBot: Dan Scales <danscales@google.com>
      Reviewed-by: default avatarKeith Randall <khr@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      21713f41