RTEMS | libcsupport: Fix heap state modification in malloc_info(). (!1551)

Saahil Shaw (@Kernel) gitlab at rtems.org
Sun Nov 1 13:09:06 UTC 2026



Saahil Shaw created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1551

Project:Branches: Kernel/rtems:fix-malloc-info-side-effect to rtems/rtos/rtems:main
Author: Saahil Shaw

## Summary

libcsupport: Fix heap state modification in malloc_info().

- Remove the delayed block freeing side effect from malloc_info().
- Drain delayed blocks in rtems_resource_snapshot_take() instead.
- Add necessary documentation for malloc_info().

Update [#41](https://gitlab.rtems.org/rtems/programs/gsoc/-/work_items/41)

## AI Details

<!--Make sure you have read our statement at https://www.rtems.org/generative-ai/-->

### Prompt used

None

### AI model used

Gemini 4 (Argon)

### How AI was used for the contribution

- [ ] Formatting
- [x] Test creation.
- [x] Code comments.
- [ ] The entire contribution was generated using AI
- [ ] AI code completion such as Copilot in VSCode.

If others were used please add below

### Access

I have legitimate access to Google Gemini and I have not used a product that claims copyright on the generated output.

<!--Default settings, if it is a dropdown it will set after submission-->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1551
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-f0f097mo87ntwmu0wzk9nkg3y-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20261101/62796cb6/attachment.htm>


More information about the bugs mailing list