1. 18 Aug, 2014 4 commits
    • Brad Fitzpatrick's avatar
      internal/syscall: add support for getrandom on arm · 1a8c00ea
      Brad Fitzpatrick authored
      Added in linux commit eb6452537b28
      
      LGTM=agl
      R=agl
      CC=golang-codereviews
      https://golang.org/cl/130170043
      1a8c00ea
    • Dmitriy Vyukov's avatar
      runtime: implement transfer cache · e0df11d5
      Dmitriy Vyukov authored
      Currently we do the following dance after sweeping a span:
      1. lock mcentral
      2. remove the span from a list
      3. unlock mcentral
      4. unmark span
      5. lock mheap
      6. insert the span into heap
      7. unlock mheap
      8. lock mcentral
      9. observe empty list
      10. unlock mcentral
      11. lock mheap
      12. grab the span
      13. unlock mheap
      14. mark span
      15. lock mcentral
      16. insert the span into empty list
      17. unlock mcentral
      
      This change short-circuits this sequence to nothing,
      that is, we just cache and use the span after sweeping.
      
      This gives us functionality similar (even better) to tcmalloc's transfer cache.
      
      benchmark            old ns/op     new ns/op     delta
      BenchmarkMalloc8     22.2          19.5          -12.16%
      BenchmarkMalloc16    31.0          26.6          -14.19%
      
      LGTM=khr
      R=golang-codereviews, khr
      CC=golang-codereviews, rlh, rsc
      https://golang.org/cl/119550043
      e0df11d5
    • Dmitriy Vyukov's avatar
      runtime: fix dump of data/bss · 101c00a4
      Dmitriy Vyukov authored
      Fixes #8530.
      
      LGTM=khr
      R=golang-codereviews, khr
      CC=golang-codereviews, rsc
      https://golang.org/cl/124440043
      101c00a4
    • Dmitriy Vyukov's avatar
      runtime: don't acquirem on malloc fast path · 30940cfa
      Dmitriy Vyukov authored
      Mallocgc must be atomic wrt GC, but for performance reasons
      don't acquirem/releasem on fast path. The code does not have
      split stack checks, so it can't be preempted by GC.
      Functions like roundup/add are inlined. And onM/racemalloc are nosplit.
      Also add debug code that checks these assumptions.
      
      benchmark                     old ns/op     new ns/op     delta
      BenchmarkMalloc8              20.5          17.2          -16.10%
      BenchmarkMalloc16             29.5          27.0          -8.47%
      BenchmarkMallocTypeInfo8      31.5          27.6          -12.38%
      BenchmarkMallocTypeInfo16     34.7          30.9          -10.95%
      
      LGTM=khr
      R=golang-codereviews, khr
      CC=golang-codereviews, rlh, rsc
      https://golang.org/cl/123100043
      30940cfa
  2. 16 Aug, 2014 4 commits
  3. 15 Aug, 2014 8 commits
  4. 14 Aug, 2014 3 commits
  5. 13 Aug, 2014 9 commits
  6. 12 Aug, 2014 12 commits