Hi
I need a memory allocator that supports different partitions, for running V8 in multi-sandbox mode. It's necessary for ArrayBuffer backings to be allocated inside the correct sandbox. There's a simple one in the V8 API, but it is likely to be low performance.
I took a look at PartitionAlloc, which is what Chromium uses but it looks a bit unfinished. It's not clear which .h files constitute the external API and which ones are internal-only or testing .h files (any clarification appreciated).
In addition it apparently only supports 4 pools/partitions at the moment, whereas I would need one for each sandbox. I'm not sure how fundamental this is. It would be possible for me to use an API where I passed a pool identifier to every allocation and deallocation, if the issue is just being able to find the pool, given an address to be freed.
Is it unrealistic to use PartitionAlloc in production?
--
Erik Corry