~/talk

Dynamic Memory Allocation Challenges in C++ Safety Critical Systems

Talkat ACCU 2025 · 2025-04-01..04-04· [c-and-cpp]
links:none on file
slides:none on file

Covers why ISO 26262 and guidelines like MISRA 2023 ban or restrict heap use and what actually breaks: leaks, out‑of‑memory, allocation/deallocation mismatch, fragmentation, non‑deterministic latency and use‑after‑free. Shows concrete surprises: stack grew from 132KB to 632KB during recursion and stays expanded, malloc sometimes returns memory via mmap instead of brk so extra segments appear, make_unique<int> costs 4 bytes but shared control blocks can be ~24 bytes, threads/promises allocate (~24–48 bytes). Maps options: global/class operator new override, custom allocators, std::pmr memory_resource (monotonic, null, new_delete) and their propagation and swap pitfalls.

AI-written summary · about

  1. 0:00Dynamic memory in safety critical
  2. 1:55Safety critical systems defined
  3. 5:47ISO 26262 overview
  4. 8:17ISO 26262 requirements
  5. 11:50Avoid dynamic memory in C++
  6. 14:01Programs and memory changes
  7. 20:05Linux executable memory layout
  8. 21:57Linux memory segments
  9. 23:00Stack growth in recursion
  10. 25:57Heap allocation behavior
  11. 31:42Hardware cache misses
  12. 33:10C++ memory model
  13. 36:43C++ new and delete deep dive
  14. 47:12Dynamic memory in C++ standard library
  15. 53:37Detecting alloc in libraries
  16. 56:48Global memory customization
  17. 59:22Class-specific allocators
  18. 1:00:46Custom allocators traits
  19. 1:02:53Polymorphic memory resources
  20. 1:07:30Challenges and pitfalls
  21. 1:10:39Q&A
~/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.