~/talk

Understanding Memory Allocation in Go

Talkat Golang UK Conference 2015 · on Friday, 2015-08-21· [go]
links:none on file
slides:none on file

Explains Go’s memory model: one heap, one stack per goroutine with stacks grown from the heap so goroutines stay lightweight; contrasts new vs literal address semantics and explains make creates underlying array for slices and channels, showing how append may share or copy the backing array. Covers mark-and-sweep GC and the move in Go 1.5 toward concurrent collection, recommends using the testing benchmark (bytes allocated, allocs/op) and pprof profiler, and warns about leaks from unclosed HTTP response bodies.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15Outline
  3. 2:05Memory Model
  4. 3:10Heap
  5. 4:22Stack
  6. 4:58Stack Example
  7. 7:05Stack Model
  8. 8:36Go Stack Model
  9. 12:23Slices
  10. 14:51Unpredictable behavior
  11. 16:41Channels
  12. 19:18Garbage Collection
  13. 21:05Concurrent Garbage Collection
  14. 23:21Solutions
  15. 24:38Monitoring
  16. 25:12Benchmarks
  17. 26:39Bit Packing
  18. 29:45PPRO
  19. 31:31Memory Leaks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.