[RTEMS Project] #4946: malloc_info() changes the state of the heap
RTEMS trac
trac at rtems.org
Fri Feb 16 01:05:08 UTC 2024
#4946: malloc_info() changes the state of the heap
----------------------------------+-------------------------
Reporter: Chris Johns | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: Indefinite
Component: score | Version: 7
Severity: normal | Resolution:
Keywords: soc executive medium | Blocked By:
Blocking: |
----------------------------------+-------------------------
Description changed by Gedare Bloom:
Old description:
> == Mentors ==
> * Chris Johns
> * Gedare Bloom
>
> == Skills ==
> This is primarily a C programming project.
>
> == Description ==
>
> The call `malloc_info()` is useful when looking to heap issues when some
> allocations are not right. I have found this call changes the state of
> the heap. I am not sure what is happening but I think a call like this
> should not effect the state of the heap and only report it.
>
> The documentation for this call, specification of the requirements, and
> any related documentation around it should be updated when this call
> becomes side-effect free.
>
> This project could potentially be combined with other projects related to
> memory allocators.
New description:
== Mentors ==
* Chris Johns
* Gedare Bloom
== Skills ==
This is primarily a C programming project.
== Expected Outcome ==
The `malloc_info` function is made to be side-effect free with respect to
the C program heap.
== Description ==
The call `malloc_info()` is useful when looking to heap issues when some
allocations are not right. I have found this call changes the state of the
heap. I am not sure what is happening but I think a call like this should
not effect the state of the heap and only report it.
The documentation for this call, specification of the requirements, and
any related documentation around it should be updated when this call
becomes side-effect free.
This project could potentially be combined with other projects related to
memory allocators.
--
--
Ticket URL: <http://devel.rtems.org/ticket/4946#comment:15>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list