commit | 80cdaba569600154d91819d2e252f6b7dd9cff73 | [log] [tgz] |
---|---|---|
author | Jeff King <peff@peff.net> | Tue Jun 10 17:42:51 2014 -0400 |
committer | Junio C Hamano <gitster@pobox.com> | Fri Jun 13 12:08:17 2014 -0700 |
tree | 73779fbdcd2c66ac0fde31efc93f772a127c7d1a | |
parent | bc6b8fc1300ef79c4b4c3c2a79bb3c1e2e032963 [diff] |
commit-slab: provide a static initializer Callers currently must use init_foo_slab() at runtime before accessing a slab. For global slabs, it's much nicer if we can initialize them in BSS, so that each user does not have to add code to check-and-initialize. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>