1. 06 Feb, 2018 1 commit
  2. 05 Feb, 2018 3 commits
  3. 02 Feb, 2018 5 commits
  4. 31 Jan, 2018 10 commits
  5. 30 Jan, 2018 7 commits
  6. 29 Jan, 2018 2 commits
  7. 28 Jan, 2018 1 commit
  8. 26 Jan, 2018 2 commits
  9. 25 Jan, 2018 5 commits
  10. 24 Jan, 2018 4 commits
    • Russ Cox's avatar
      cmd/go: fix -coverpkg=all with dot imports · 8d88c9ae
      Russ Cox authored
      If you use -coverpkg=all you get coverage for all packages in the build.
      Go 1.9 used a global counter for all the GoCover variables, so that they
      were distinct for the entire build. The global counter caused problems
      with caching, so we switched to a per-package counter. But now the
      GoCover_0 in one package may be dot-imported into another and
      conflict with the GoCover_0 in that other package.
      
      Reestablish (overwhelmingly likely) global uniqueness of GoCover
      variables by appending an _xxxxxxxxxxxx suffix, where the x's are
      the prefix of the SHA256 hash of the import path. The point is only
      to avoid accidents, not to defeat people determined to break the tools.
      
      Fixes #23432.
      
      Change-Id: I3088eceebbe35174f2eefe8d558b7c8b59d3eeac
      Reviewed-on: https://go-review.googlesource.com/89135Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      8d88c9ae
    • Kevin Burke's avatar
      go/types: fix spelling mistake in comment · 236abdb4
      Kevin Burke authored
      Change-Id: If8609dd7c4bdc261056804759ec254f8af0156df
      Reviewed-on: https://go-review.googlesource.com/89417Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      236abdb4
    • Hana Kim's avatar
      runtime/pprof: scale mutex profile with sampling rate · e89d08e0
      Hana Kim authored
      pprof expects the samples are scaled and reflects unsampled numbers.
      The legacy profile parser uses the sampling period in the output
      and multiplies all values with the period.
      
      https://github.com/google/pprof/blob/0138a3cd6dad6f94495ba0b5c3a5c124f04ae011/profile/legacy_profile.go#L815
      
      Apply the same scaling when we output the mutex profile
      in the pprof proto format.
      
      Block profile shares the same code, but how to infer unsampled
      values is unclear. Legacy profile parser doesn't do anything special
      so we do nothing for block profile here.
      
      Tested by checking the profiles reported with debug=0 (proto format)
      are similar to the profiles computed from legacy format profile
      when the profile rate is a non-trivial number (e.g. 2) manually.
      
      Change-Id: Iaa33f92051deed67d8be43ddffc7c1016db566ca
      Reviewed-on: https://go-review.googlesource.com/89295Reviewed-by: default avatarPeter Weinberger <pjw@google.com>
      e89d08e0
    • David du Colombier's avatar
      os: homogenize error checks on Plan 9 · 157d8cfb
      David du Colombier authored
      Remove leading space at the beginning of error strings,
      so the strings are consistent between isExist, isNotExist
      and isPermission functions.
      
      Here is a list of error strings returned on the most common
      file servers on Plan 9:
      
           match                     cwfs                      fossil                   ramfs
      
      "exists"            "create/wstat -- file exists"  "file already exists"    "file exists"
      "is a directory"                                   "is a directory"         "file is a directory"
      
      "does not exist"                                   "file does not exist"    "file does not exist"
      "not found"         "directory entry not found"
      "has been removed"                                 "file has been removed"
      
      "permission denied" "access permission denied"     "permission denied"      "permission denied"
      
      "no parent" is an error returned by lib9p when removing a file without parent.
      
      Change-Id: I2362ed4b6730b8bec7a707a1052bd1ad8921cd97
      Reviewed-on: https://go-review.googlesource.com/89315Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: default avatarRob Pike <r@golang.org>
      157d8cfb