~/talk

Unwinding the Stack: Exploring How C++ Exceptions Work on Windows

Talkat CppCon 2018 · 2018-09-23..09-28· [c-and-cpp, linux-and-operating-systems]
links:none on file
slides:none on file

Shows exactly how Visual C++ turns throw into a structured exception: the runtime calls CxxThrowException with throw info and an exception object, the common handler (CxxFrameHandler/except_handler3) uses function metadata to pick a catch, calls RtlUnwind for global unwind and then local cleanup, and on x64 the OS looks up per-function records in .pdata so zero-cost unwinding is possible and noexcept triggers immediate terminate.

AI-written summary · about

  1. 0:00Introduction to exceptions
  2. 1:29Structured exceptions
  3. 6:37The SEH mechanism
  4. 9:00Implementing manual handlers
  5. 12:41Compiler extensions
  6. 20:05SEH under the hood
  7. 26:21Exception handler mechanics
  8. 28:28Unwinding the stack
  9. 37:59Custom exceptions and C++
  10. 39:56C++ exception architecture
  11. 45:56Catching and cleanup
  12. 51:58Architecture and history
~/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.