[PATCH] posix: Reimplement POSIX Key manager to use a red-black tree.

Gedare Bloom gedare at rtems.org
Mon Jul 29 03:18:22 UTC 2013


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.

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?
-Gedare
On Jul 28, 2013 11:55 AM, "Ashi" <ashi08104 at gmail.com> wrote:

> I'm updating this patch this days, but get stuck with several problems:
>
>   - when key deleting, should we just put the deleted node back to
> freechain or run workspace_free on these deleted nodes?
>
>   - my current code (at:
> https://github.com/ashi08104/rtems/tree/one_rbtree_add_fl) 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:
>
> #define CONFIGURE_MAXIMUM_POSIX_THREADS  rtems_resource_unlimited(5)
>
> to:
>
> #define CONFIGURE_MAXIMUM_POSIX_THREADS  rtems_resource_unlimited(4)
>
> then, this test case will be OK. And change to different number of
> rtems_resource_unlimited() would lead to different errors.
> Could anyone give me some hints about this? If necessary, I can provide
> more details. Thanks!
>
> --Zhongwei
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20130728/617cefed/attachment-0001.html>


More information about the devel mailing list