MINOR: memory: Only init the pool spinlock once.
authorOlivier Houchard <cognet@ci0.org>
Sat, 1 Feb 2020 16:45:32 +0000 (17:45 +0100)
committerOlivier Houchard <cognet@ci0.org>
Sat, 1 Feb 2020 17:08:34 +0000 (18:08 +0100)
commit8af97eb4a19c1d3c0849b5e5e5d350d63f819032
tree9395db7b268265f2e0e23628ce8fa9c27439ed28
parentb6fa08bc7bca48e0098b555e3c433e0969f46d4c
MINOR: memory: Only init the pool spinlock once.

In pool_create(), only initialize the pool spinlock if we just created the
pool, in the event we're reusing it, there's no need to initialize it again.
src/memory.c