~/talk

Go Surgery: a Goroutine and Its Innards

Talkat Gopherpalooza 2018 · on Friday, 2018-10-12· [go]
links:none on file
slides:none on file

Shows how goroutines are created by runtime.newproc, initial argument bytes checked against 2 KB minimum stack, passing large by-value structs can crash; scheduler uses the M/P/G model with work-stealing and goroutine pools for reuse; runtime exposes tracing via GODEBUG and stack dumps with runtime.Stack; a simple leak detector based on periodic runtime.Stack snapshots and parsing is implemented and used in net/http; explains goroutine states and how stacks grow and get copied.

AI-written summary · about

  1. 0:00Intro
  2. 0:45Welcome
  3. 1:02About me
  4. 1:21Why is this talk important
  5. 2:48Questions
  6. 3:50Terminology
  7. 4:52What is a Goroutine
  8. 6:22Why go routines
  9. 8:08Native threading APIs
  10. 8:36Pthreads
  11. 9:10Conspiracy Theory
  12. 10:24Silk Plus
  13. 10:56Silk Program
  14. 11:24Pthread Program
  15. 11:43Create Thread
  16. 12:05Parallelized Fibonacci
  17. 12:31Runtime Gods
  18. 12:56Silk Look
  19. 13:20Synchronization Primitives
  20. 13:38States
  21. 14:44Idle State
  22. 15:19Copystack
  23. 16:02Quit
  24. 16:27Runnable
  25. 16:37Idle
  26. 17:23NewProc
  27. 17:47Argument Size
  28. 18:29Goroutine Crash
  29. 19:11Compiler Runtime
  30. 20:13Go Development
  31. 20:43Goroutines
  32. 22:34Device Register
  33. 22:57Crash
  34. 23:52Go Debug
  35. 24:30Environment Variables
  36. 24:56Screenshot
  37. 25:19Channel Send
  38. 25:34Utilities
  39. 25:58Freeze everything
  40. 26:23Goroutine leak detector
  41. 28:29Conclusion
~/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.