~/talk

Memory Layout of V8's Heap

Talkat DotJS 2016 · 2016-12-02..12-05· [javascript, nodejs]
slides:none on file

Explains how V8 represents JS values as 64-bit machine words (8-byte words), how small integers are tagged to avoid boxing (31-bit smallints), and how maps aka hidden classes encode property offsets so property loads become fast map checks plus direct loads. Demonstrates the postmortem tool llnode with commands like v8 back-trace and v8 inspect, shows using core dumps to count instances and trace retainers, and recounts fixing a huge memory leak in the TLS core module and nodejs.

AI-written summary · about

  1. 0:00dot JS Fedor Indutny
  2. 0:20Fedor Indutny Software Engineer @ PayPal Node.js TSC/CTC member
  3. 2:27HOW TO FIT HIGH-LEVEL DATA INTO LOW-LEVEL MEDIUM?
  4. 5:55SMall Integer
  5. 6:49Boxing
  6. 9:50What is it?
  7. 11:53Map == Hidden Class
  8. 14:56String properties • Number properties (elements) • In-object properties (fast properties)
~/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.