use calloc instead of malloc;memset in zmalloc()
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 2 Jun 2020 03:44:34 +0000 (20:44 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 16 Jun 2020 14:23:28 +0000 (07:23 -0700)
commite66ddf5e2f042360f0157aec8826f6315e8edc94
tree3a09a136bdf02fde5346fe356f34b5d08b6a1b80
parent01eedae5583bb0c1bcef3916fddfc59254c8a54f
use calloc instead of malloc;memset in zmalloc()

This is more efficient for larger allocations, where the allocator can just
provide a zeroed page from the operating system.
lib/common/memory.c