1. 22 Mar, 2016 4 commits
  2. 21 Mar, 2016 33 commits
  3. 20 Mar, 2016 3 commits
    • Richard Miller's avatar
      net/http: adaptive wait time in PersistConnLeak tests · 34f0c0b3
      Richard Miller authored
      In tests TransportPersistConnLeak and TransportPersistConnLeakShortBody,
      there's a fixed wait time (100ms and 400ms respectively) to allow
      goroutines to exit after CloseIdleConnections is called. This
      is sometimes too short on a slow host running many simultaneous
      tests.
      
      This CL replaces the fixed sleep in each test with a sequence of
      shorter sleeps, testing the number of remaining goroutines until
      it reaches the threshold or an overall time limit of 500ms expires.
      This prevents some failures in the plan9_arm builder, while reducing
      the test time on faster machines.
      
      Fixes #14887
      
      Change-Id: Ia5c871062df139e2667cdfb2ce8283e135435318
      Reviewed-on: https://go-review.googlesource.com/20922
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      34f0c0b3
    • Alexandru Moșoi's avatar
      cmd/compile: add rules to simplify AddPtr · a7a19994
      Alexandru Moșoi authored
      Fixes #14849
      
      Change-Id: I86e2dc27ca73bb6b24261a68cbf0094a63167414
      Reviewed-on: https://go-review.googlesource.com/20833Reviewed-by: default avatarKeith Randall <khr@golang.org>
      Run-TryBot: Alexandru Moșoi <alexandru@mosoi.ro>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      a7a19994
    • Ian Lance Taylor's avatar
      cmd/compile: fix varexpr handling of ODOT · a9407b57
      Ian Lance Taylor authored
      For a long time varexpr has handled ODOT incorrectly: it has always
      returned false.  Before https://golang.org/cl/20890 this has been
      because an ODOT had a Right field with an ONAME with no Class, for which
      varexpr returns false.  CL 20890 preserved the behavior of varexpr for
      ODOT, so that the change would pass toolstash -cmp.
      
      This CL fixes varexpr so that ODOT can return true in some cases.  This
      breaks toolstash -cmp.  While the changed compiler allocates temporary
      variables in a different order, I have not been able to find any
      examples where the generated code is different, other than using
      different stack offsets and, in some cases, registers.  It seems that
      other parts of the compiler will force the ODOT into a temporary anyhow.
      
      Still, this change is clearly correct, and is a minor compiler cleanup.
      
      Change-Id: I71506877aa3c13966bb03c281aa16271ee7fe80a
      Reviewed-on: https://go-review.googlesource.com/20907
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      Reviewed-by: default avatarDavid Crawshaw <crawshaw@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      a9407b57