4 ms·
Value types are stored wherever appropriate. If they escape they’re going on the heap like everything else.
by saagarjha 4y ago
Value types are stored wherever appropriate. If they escape they’re going on the heap like everything else.
- BulgarianIdiot 4y agoIf they are very large and implement copy-on-write, sure, parts of them may be on the heap. But they don't need to be on the heap if they escape if they're just returned by copy.
- saagarjha 4y agos/very large/a couple of words/