aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-06-11 22:10:42 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-06-11 22:10:42 +0000
commit4a275fc333156c830a142b8cf9e4945772f2ad1d (patch)
tree87b2e272f9f75c31b8bd1f1281ca279f40de54d8
parent6ee37029974ff4db106b1ab439d8a7a438f3fb35 (diff)
downloadbusybox-w32-4a275fc333156c830a142b8cf9e4945772f2ad1d.tar.gz
busybox-w32-4a275fc333156c830a142b8cf9e4945772f2ad1d.tar.bz2
busybox-w32-4a275fc333156c830a142b8cf9e4945772f2ad1d.zip
Note that memory allocaiton needs to be cleaned up too.
git-svn-id: svn://busybox.net/trunk/busybox@10529 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--TODO12
1 files changed, 12 insertions, 0 deletions
diff --git a/TODO b/TODO
index 4653abfb2..cef25cfdf 100644
--- a/TODO
+++ b/TODO
@@ -105,3 +105,15 @@ buildroot - Make a "dogfood" option
105 util-linux, and vim. Anything that's wrong with the resulting system, we 105 util-linux, and vim. Anything that's wrong with the resulting system, we
106 can fix. (It would be nice to be able to upgrade busybox to be able to 106 can fix. (It would be nice to be able to upgrade busybox to be able to
107 replace bash, diffutils, gzip, less, and patch as well.) 107 replace bash, diffutils, gzip, less, and patch as well.)
108---
109Memory Allocation
110 We have a CONFIG_BUFFER mechanism that lets us select whether to do memory
111 allocation on the stack or the heap. Unfortunately, we're not using it much.
112 We need to audit our memory allocations and turn a lot of malloc/free calls
113 into RESERVE_CONFIG_BUFFER/RELEASE_CONFIG_BUFFER.
114
115 And while we're at it, many of the CONFIG_FEATURE_CLEAN_UP #ifdefs will be
116 optimized out by the compiler in the stack allocation case (since there's no
117 free for an alloca()), and this means that various cleanup loops that just
118 call free might also be optimized out by the compiler if written right, so
119 we can yank those #ifdefs too, and generally clean up the code.