uint total, total_large;
};
+static void *lp_alloc_slow(struct linpool *, uint);
static void lp_free(resource *);
static void lp_dump(resource *, unsigned);
static resource *lp_lookup(resource *, unsigned long);
return a;
}
else
+ return lp_alloc_slow(m, size);
+}
+
+static void *
+lp_alloc_slow(linpool *m, uint size)
{
struct lp_chunk *c;
if (size > LP_DATA_SIZE)
}
return c->data;
}
-}
/**
* lp_allocu - allocate unaligned memory from a &linpool
m->ptr = e;
return a;
}
- return lp_alloc(m, size);
+ return lp_alloc_slow(m, size);
}
/**