summaryrefslogtreecommitdiff
path: root/src/global.c
diff options
context:
space:
mode:
authorlhchavez <lhchavez@lhchavez.com>2020-08-25 06:13:38 -0700
committerlhchavez <lhchavez@lhchavez.com>2020-10-08 05:31:30 -0700
commit03c0938f5b389ef33946849636510fbc0c4388f4 (patch)
tree709d3ac811678816567efe84e3fbd9b71a40b616 /src/global.c
parentcc1d7f5ceb31985b69ac5aef0828109814c68d2e (diff)
downloadlibgit2-03c0938f5b389ef33946849636510fbc0c4388f4.tar.gz
Avoid using atomics in pool.c
Instead, globally initialize the system page size.
Diffstat (limited to 'src/global.c')
-rw-r--r--src/global.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/global.c b/src/global.c
index 5af35aa62..9fe8cd5d3 100644
--- a/src/global.c
+++ b/src/global.c
@@ -12,6 +12,7 @@
#include "sysdir.h"
#include "filter.h"
#include "merge_driver.h"
+#include "pool.h"
#include "streams/registry.h"
#include "streams/mbedtls.h"
#include "streams/openssl.h"
@@ -38,7 +39,8 @@ static git_global_init_fn git__init_callbacks[] = {
git_stream_registry_global_init,
git_openssl_stream_global_init,
git_mbedtls_stream_global_init,
- git_mwindow_global_init
+ git_mwindow_global_init,
+ git_pool_global_init
};
static git_global_shutdown_fn git__shutdown_callbacks[ARRAY_SIZE(git__init_callbacks)];