summaryrefslogtreecommitdiff
path: root/lib/resource.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2021-09-03 19:48:38 +0200
committerMaria Matejka <mq@ucw.cz>2021-10-13 19:00:36 +0200
commite5a8eec6d720408139d0a209ef149848c5dcfbe3 (patch)
tree96e0cb68f44cafd6b5e3f774f0900beb02441dd5 /lib/resource.h
parentbea582cbb53e30dd32a5b6829c7443e0e5558d11 (diff)
Linpools may use pages instead of xmalloc
Diffstat (limited to 'lib/resource.h')
-rw-r--r--lib/resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resource.h b/lib/resource.h
index 597d6c17..26030aea 100644
--- a/lib/resource.h
+++ b/lib/resource.h
@@ -76,7 +76,7 @@ void lp_restore(linpool *m, lp_state *p); /* Restore state */
extern const int lp_chunk_size;
#define LP_GAS 1024
#define LP_GOOD_SIZE(x) (((x + LP_GAS - 1) & (~(LP_GAS - 1))) - lp_chunk_size)
-#define lp_new_default(p) lp_new(p, LP_GOOD_SIZE(LP_GAS*4))
+#define lp_new_default(p) lp_new(p, 0)
/* Slabs */