stress program in RTEMS

Sebastian Huber sebastian.huber at
Thu Oct 24 07:17:39 UTC 2013

On 2013-10-23 19:38, Joel Sherrill wrote:
> + the Classic API did not check for NULL parameters. This
> was per the original specification and was by design. 0x0000
> was a valid address on some targets at that point in history.
> We added NULL checks in response.

So this is the reason for all these superfluous NULL pointer checks.  I would 
move all these NULL pointer checks under RTEMS_DEBUG and use an assert. 
Applications that pass NULL pointers around also don't check for return values.

A NULL pointer check is only justified if you use a function that could return one.

Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

More information about the users mailing list