diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2013-08-22 12:12:47 +0200 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2013-08-26 09:42:47 +0200 |
commit | a2a2e14e0d400e1c82b4d02c4399602488578dc6 (patch) | |
tree | 87e63279ef95ce06315b492d85a009b58f3782b2 /apps/plugins/lua/README | |
parent | b2e80edd1671833dc80eb0c5334cb6a2c58808e0 (diff) | |
download | rockbox-a2a2e14e0d400e1c82b4d02c4399602488578dc6.tar.gz rockbox-a2a2e14e0d400e1c82b4d02c4399602488578dc6.zip |
lua: Switch memory allocator from dl to tlsf
Instead of providing yet another memory allocator implementation
use tlsf and simply link tlsf library.
Another small improvement is to *grow* memory pool by grabbing
audiobuffer instead of just switching to use audiobuf exclusively.
Tested with simple lua 'memory eater' script.
This patch extends tlsf lib slightly. You can provide
void *get_new_area(size_t * size) function which will override
weak dummy implementation provided in lib itself. This allows to
automaticaly initialize memory pool as well as grow memory
pool if needed (for example grab audiobuffer when pluginbuffer
is exhaused).
Change-Id: I841af6b6b5bbbf546c14cbf139a7723fbb982f1b
Diffstat (limited to 'apps/plugins/lua/README')
-rw-r--r-- | apps/plugins/lua/README | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/apps/plugins/lua/README b/apps/plugins/lua/README index db6933f517..5b53eb354e 100644 --- a/apps/plugins/lua/README +++ b/apps/plugins/lua/README | |||
@@ -9,13 +9,3 @@ version 0.31 which is licensed under the GPL version 2: | |||
9 | strtol.c | 9 | strtol.c |
10 | strtoul.c | 10 | strtoul.c |
11 | strstr.c | 11 | strstr.c |
12 | |||
13 | The malloc routine is Doug Lea's malloc with the following license: | ||
14 | |||
15 | Version 2.8.3 Thu Sep 22 11:16:15 2005 Doug Lea (dl at gee) | ||
16 | |||
17 | This is a version (aka dlmalloc) of malloc/free/realloc written by | ||
18 | Doug Lea and released to the public domain, as explained at | ||
19 | http://creativecommons.org/licenses/publicdomain. Send questions, | ||
20 | comments, complaints, performance data, etc to dl@cs.oswego.edu | ||
21 | |||