[PATCH] confdefs: Add declaration for unlimited objects.

Joel Sherrill joel.sherrill at OARcorp.com
Mon Mar 26 22:51:25 UTC 2012


On 03/26/2012 05:47 PM, Peer Stritzinger wrote:
>> Adds to confdefs a way to specify rtems_resource_unlimited for classic and
>> posix objects using a new macro CONFIGURE_OBJECTS_UNLIMITED.
>> Use CONFIGURE_OBJECTS_ALLOCATION_SIZE to declare the allocation size for
>> extending the set of objects at runtime. Updates the unlimited sample
>> to demonstrate how to use the new macros.
> Tried this out and it helped already!
>
> I'm in the process of porting the Erlang to RTEMS and instead of
> hitting one resource limit after another I just set
> CONFIGURE_OBJECTS_UNLIMITED and get over all resource problems at
> once.  Great when porting stuff where the resource usage is completely
> unknown.
I do something similar when porting packages to RTEMS but
add in modifying the path in the Score Objects Handler when
it tells you that it has no more objects. I add a printk.  That
way I know which objects need to be unlimited.

I think most of the gcc test suite configurations are unlimited
for the objects those language run-times are known to use.

But it is certainly easier to throw a single big switch.
> Cheers
> -- Peer
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel


-- 
Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
     Support Available             (256) 722-9985





More information about the devel mailing list