Zhangshoukui opened a new pull request, #15344:
URL: https://github.com/apache/nuttx/pull/15344

   ## Summary
   add LINE_MAX and modify lib_pathbuffer
   
   1. Due to the continuous expansion of functions under the app, the 2k stack 
of many programs can no longer meet the requirements. If malloc is used 
frequently, memory fragmentation may occur, and we need an interface to 
optimize the use of stack and avoid memory fragmentation.
   
   2. There are many similar configurations in the code:
   config SYSTEM_CLE_CMD_HISTORY_LEN
   config SYSTEM_CLE_CMD_HISTORY_LINELEN
   CONFIG_NSH_LINELEN
   HELP_LINELEN
   PROCFS_LINELEN
   The future plan is to remove these configurations and use LINE_MAX
   
   ## Impact
   Optimize the use of stacks
   ## Testing
   local test
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to