1. 30 Oct, 2014 1 commit
    • Russ Cox's avatar
      runtime: change top-most return PC from goexit to goexit+PCQuantum · a5a07331
      Russ Cox authored
      If you get a stack of PCs from Callers, it would be expected
      that every PC is immediately after a call instruction, so to find
      the line of the call, you look up the line for PC-1.
      CL 163550043 now explicitly documents that.
      
      The most common exception to this is the top-most return PC
      on the stack, which is the entry address of the runtime.goexit
      function. Subtracting 1 from that PC will end up in a different
      function entirely.
      
      To remove this special case, make the top-most return PC
      goexit+PCQuantum and then implement goexit in assembly
      so that the first instruction can be skipped.
      
      Fixes #7690.
      
      LGTM=r
      R=r
      CC=golang-codereviews
      https://golang.org/cl/170720043
      a5a07331
  2. 29 Oct, 2014 18 commits
  3. 28 Oct, 2014 17 commits
  4. 27 Oct, 2014 4 commits
    • Robert Griesemer's avatar
      spec: permit parentheses around builtin function names · ccc713c7
      Robert Griesemer authored
      Not a language change.
      
      This is simply documenting the status quo which permits
      builtin function names to be parenthesized in calls; e.g.,
      both
      
              len(s)
      and
              (((len)))(s)
      
      are accepted by all compilers and go/types.
      
      Changed the grammar by merging the details of BuiltinCall
      with ordinary Calls. Also renamed the Call production to
      Arguments which more clearly identifies that part of the
      grammar and also matches better with its counterpart on
      the declaration side (Parameters).
      
      The fact that the first argument can be a type (for builtins)
      or cannot be a type (for regular function calls) is expressed
      in the prose, no need to make the grammar more complicated.
      
      Fixes #9001.
      
      LGTM=iant, r, rsc
      R=r, rsc, iant, ken, dave
      CC=golang-codereviews
      https://golang.org/cl/160570043
      ccc713c7
    • Andrew Gerrand's avatar
      html/template: fix build after encoding/js escaping change · e71c9cbe
      Andrew Gerrand authored
      TBR=rsc
      R=golang-codereviews
      CC=golang-codereviews
      https://golang.org/cl/159590043
      e71c9cbe
    • Russ Cox's avatar
      test: make maplinear more robust · 0f698be5
      Russ Cox authored
      The test just doubled a certain number of times
      and then gave up. On a mostly fast but occasionally
      slow machine this may never make the test run
      long enough to see the linear growth.
      
      Change test to keep doubling until the first round
      takes at least a full second, to reduce the effect of
      occasional scheduling or other jitter.
      
      The failure we saw had a time for the first round
      of around 100ms.
      
      Note that this test still passes once it sees a linear
      effect, even with a very small total time.
      The timeout here only applies to how long the execution
      must be to support a reported failure.
      
      LGTM=khr
      R=khr
      CC=golang-codereviews, rlh
      https://golang.org/cl/164070043
      0f698be5
    • Russ Cox's avatar
      encoding/json: encode \t as \t instead of \u0009 · aec37e7c
      Russ Cox authored
      Shorter and easier to read form for a common character.
      
      LGTM=bradfitz
      R=adg, bradfitz
      CC=golang-codereviews, zimmski
      https://golang.org/cl/162340043
      aec37e7c