<p>I would put it back to the freechain unless there is a good way to check if the wkspace is almost all gone, which only is an issue for unlimited mode of some object.</p>
<p>I do not have RTEMS in front of me to look at the code, but going from 4 to 5 would change when the thread allocation occurs. How many pthreads in the test?<br>
-Gedare</p>
<div class="gmail_quote">On Jul 28, 2013 11:55 AM, "Ashi" <<a href="mailto:ashi08104@gmail.com">ashi08104@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I'm updating this patch this days, but get stuck with several problems:<br><br>  - when key deleting, should we just put the deleted node back to freechain or run workspace_free on these deleted nodes?<br>

<br>  - my current code (at: <a href="https://github.com/ashi08104/rtems/tree/one_rbtree_add_fl" target="_blank">https://github.com/ashi08104/rtems/tree/one_rbtree_add_fl</a>) can't pass the unlimited test cases (psxkey07 and psxkey08). I tried to debug it, but still with no success until now. one interesting thing is when I change following line in psxkey07/init.c:<br>

<br>#define CONFIGURE_MAXIMUM_POSIX_THREADS  rtems_resource_unlimited(5)<br><br>to:<br><br>#define CONFIGURE_MAXIMUM_POSIX_THREADS  rtems_resource_unlimited(4)<br><br>then, this test case will be OK. And change to different number of rtems_resource_unlimited() would lead to different errors.<br>

Could anyone give me some hints about this? If necessary, I can provide more details. Thanks!<br><br>--Zhongwei<br><br></div>
</blockquote></div>