~/talk

Dynamic memory allocation challenges in safety critical systems

Talkat NDC TechTown 2025 · 2025-09-22..09-25· [rust]
links:none on file
slides:none on file

Explores how ISO 26262 and recent MISRA/Autosar guidance forbid dynamic allocation after init and why: demos use readelf, objdump and GDB plus GitHub examples to show the heap using brk vs mmap, lazy allocation via mmap vs brk, and that the stack grows but never shrinks on recursion. Measures: make_unique triggers ~4 bytes, make_shared adds ~24 bytes for control block, stack_trace consumes ~512 bytes; shows global and per-class operator new/delete, C malloc/free, and PMR monotonic/null memory_resource.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12Safety critical systems defined
  3. 6:52ISO 26262 dynamic allocation rules
  4. 11:23Static vs dynamic allocation
  5. 18:36Stack growth and heap quirks
  6. 25:43Hardware memory hierarchy
  7. 27:51C++ memory model
  8. 30:18New and delete expressions
  9. 35:37Alignment and no-throw new/delete
  10. 38:28Alternative allocation methods
  11. 43:02Detecting allocation in libraries
  12. 45:11Custom allocation mechanisms
  13. 49:48Custom allocators and PMMR
  14. 53:47Summary
~/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.