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