1. 23 Sep, 2015 17 commits
  2. 22 Sep, 2015 6 commits
  3. 21 Sep, 2015 8 commits
  4. 20 Sep, 2015 3 commits
  5. 19 Sep, 2015 4 commits
  6. 18 Sep, 2015 2 commits
    • Austin Clements's avatar
      runtime: avoid debug prints of huge objects · 97b64d88
      Austin Clements authored
      Currently when the GC prints an object for debugging (e.g., for a
      failed invalidptr or checkmark check), it dumps the entire object. To
      avoid inundating the user with output for really large objects, limit
      this to printing just the first 128 words (which are most likely to be
      useful in identifying the type of an object) and the 32 words around
      the problematic field.
      
      Change-Id: Id94a5c9d8162f8bd9b2a63bf0b1bfb0adde83c68
      Reviewed-on: https://go-review.googlesource.com/14764Reviewed-by: default avatarRick Hudson <rlh@golang.org>
      97b64d88
    • Austin Clements's avatar
      runtime: improve invalid pointer error message · b7c55ba4
      Austin Clements authored
      By default, the runtime panics if it detects a pointer to an
      unallocated span. At this point, this usually catches bad uses of
      unsafe or cgo in user code (though it could also catch runtime bugs).
      Unfortunately, the rather cryptic error misleads users, offers users
      little help with debugging their own problem, and offers the Go
      developers little help with root-causing.
      
      Improve the error message in various ways. First, the wording is
      improved to make it clearer what condition was detected and to suggest
      that this may be the result of incorrect use of unsafe or cgo. Second,
      we add a dump of the object containing the bad pointer so that there's
      at least some hope of figuring out why a bad pointer was stored in the
      Go heap.
      
      Change-Id: I57b91b12bc3cb04476399d7706679e096ce594b9
      Reviewed-on: https://go-review.googlesource.com/14763Reviewed-by: default avatarRick Hudson <rlh@golang.org>
      b7c55ba4