Does v8 preserve locality of objects that were pushed from new space to old space?
13 views
Skip to first unread message
Bogdan
unread,
Aug 20, 2019, 5:09:21 AM8/20/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to v8-dev
Let's say I've created some objects within a loop so these objects will be stored in memory side by side because v8 uses bump pointer allocation for objects in new space. So far so good. After some time and some amount of new allocations in new space v8 decided that our objects are long-lived and it's going to push these objects from new space to old space. The questions is - will v8 preserve locality of these contiguous objects therefore they will be allocated in old space also side by side preserving original locality? Or these object will be pushed (allocated) to old space one by one and locality will not be preserved (like in linked list slab allocators) ?