4 ms·I'm actually pretty surprised if the JVM uses malloc to allocate the heap. V8 uses mmap, never malloc.by ErikCorry 10mo agoI'm actually pretty surprised if the JVM uses malloc to allocate the heap. V8 uses mmap, never malloc.