xiaoxiang781216 commented on pull request #5807: URL: https://github.com/apache/incubator-nuttx/pull/5807#issuecomment-1073917480
> @xiaoxiang781216 I think we should reevaluate `g_npidhash *= 2;` and `g_npidhash <<= 1;` in `sched/task/task_setup.c` and `sched/init/nx_start.c` so the overflow will not be hit. I think that most probably it will be not, just want to be sure. What do you think? Before g_npidhash(0x40000000) overflow, we will get the out of memory because g_pidhash will occupy 4GB(0x40000000 * 4). -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org