From e9cb50188b1b04b6e5e8e8ccc8874b2abcff8bb1 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 31 May 2018 01:51:48 +0800 Subject: memalloc: Avoid looping in growstackto Currently growstackto will repeatedly call growstackblock until the requisite size is obtained. This is wasteful. This patch changes growstackblock to take a minimum size instead. Signed-off-by: Herbert Xu --- src/memalloc.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/memalloc.h') diff --git a/src/memalloc.h b/src/memalloc.h index b348d9c..b9c63da 100644 --- a/src/memalloc.h +++ b/src/memalloc.h @@ -55,7 +55,6 @@ void stunalloc(pointer); void pushstackmark(struct stackmark *mark, size_t len); void setstackmark(struct stackmark *); void popstackmark(struct stackmark *); -void growstackblock(void); void *growstackstr(void); char *growstackto(size_t len); char *makestrspace(size_t, char *); -- cgit 1.4.1