mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Linpools may use pages instead of xmalloc
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user