[RTEMS 5 1/2] score: Fix _Objects_Active_count()

2022-07-18 Thread Sebastian Huber
With unlimited objects the object maximum may be larger than the sum of active and inactive objects. Update #4676. --- cpukit/score/src/objectactivecount.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/cpukit/score/src/objectactivecount.c

[RTEMS 5 2/2] score: Fix unlimited objects support

2022-07-18 Thread Sebastian Huber
Commit 21275b58a5a69c3c838082ffc8a7a3641f32ea9a ("score: Static Objects_Information initialization") introduced an off-by-one error in the maintenance of inactive objects. Close #4676. --- cpukit/include/rtems/score/objectimpl.h | 29 + cpukit/score/src/objectfree.c