How does Sun JVMs memory allocator (here and here) compares to glibcs malloc (a modified ptmalloc2) or jemalloc?
For example, a good article which discusses the benefits of jemalloc in comparison to the old phkmalloc implementation (the earlier default in FreeBSD) can be found in the initial presentation of jemalloc. Common problems of earlier implementations were fragmentation and multithreaded handling.
An effective comparison of jemalloc to Visual Studios malloc implementation can be found in this Firefox benchmarking test.
Are there similar comparisons which compare Sun JVMs memory allocator to one of these common malloc implementations? What implementation is most close to Sun JVMs mem alloc?
Another interesting way to figure it out would be to replace Suns malloc by jemalloc or some other implementation and see the implications of this in the JVM performance and in its memory fragmentation.
Memory fragmentation is a very common problem in all memory allocators, read also this article. So I wonder how well Suns malloc handles this in comparison to jemalloc.
Is there some article where different memory allocators have been tried out in Suns JVM? I am esp. interested about memory fragmentation and speed.