Status: New
Owner: ----
New issue 3001 by [email protected]: Provide support for defining
custom, per-Isolate memory allocators
http://code.google.com/p/v8/issues/detail?id=3001
Allowing to customize which functions V8 would use for system
heap memory allocation in a per-Isolate basis would allow for
a number of things to be done:
* Tracking memory usage (and other metrics, e.g. fragmentation),
with different purposes. A real-world case I can provide is
monitoring and remotely reporting memory usage of applications
which are run in separate Isolate each, in the same process.
* Easily replacing the standard system allocator. This can be
interesting for platforms where the malloc/free functions
provided by the system C library are known to be slow. As
an example, traditionally the Windows C runtime memory
allocation functions have been orders of magnitude slower
than alternate implementations like tcmalloc or nedmalloc.
* Using V8 in platforms with unusual memory layouts or with
imposed constraints. For example, systems with small amounts
of memory may use an allocator which reduces fragmentation
as much as possible (in this case being slower may be a better
option than running ouf of memory). Another example is systems
which do not provide standard memory allocation functions (or
do not have a “traditional” memory layout).
* Simulating out-of-memory conditions for stress testing V8
in such an scenario. For example this is interesting for
the development of the garbage collector itself.
* Debugging memory usage of V8 by using an allocators that
return memory initialized certain data pattern, or which
allocate around page boundaries to catch accesses outside
of the allocated memory chunks.
* Any other you can think of :-)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.