This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9506 - buffer_alloc the dircache stack
Attached to Project:
Rockbox
Opened by Jonathan Gordon (jdgordon) - Monday, 27 October 2008, 17:03 GMT+2
Last edited by amaury pouly (pamaury) - Friday, 19 February 2010, 00:16 GMT+2
Opened by Jonathan Gordon (jdgordon) - Monday, 27 October 2008, 17:03 GMT+2
Last edited by amaury pouly (pamaury) - Friday, 19 February 2010, 00:16 GMT+2
|
Detailsseen as there is no point having the dircache thread if its disabled, and because it cant be enabled without rebooting, there is no need having the stack statically allocated...
untested on target... |
This task depends upon
Closed by amaury pouly (pamaury)
Friday, 19 February 2010, 00:16 GMT+2
Reason for closing: Rejected
Additional comments about closing: Recents commits r24657 and r24708 already saved quite some space and reduced the size of the dircache thread stack.
Friday, 19 February 2010, 00:16 GMT+2
Reason for closing: Rejected
Additional comments about closing: Recents commits r24657 and r24708 already saved quite some space and reduced the size of the dircache thread stack.
if its about freeing up more RAM when its disabled then there is another 30KB buffer (dir_recursion, line 157) which could be buffer_alloc()-ed which is a hell of a lot more than the ~800 bytes + 1 thread saved by the patch in the previous comment...
but if the plan is to (hopefully) make buffer_alloc() be able to tell everything that called it to dump the ram and realloc it later, then I dont know if changing that buffer is helpful in the long run... will freeing up 31K do anything more than give a nice ram delta?
you should remove /sizeof(long) if buffer_alloc() takes an argument in bytes