Opened on 04/28/22 at 06:52:10
Closed on 04/28/22 at 07:13:22
#4644 closed defect (fixed)
wkspace "failed allocations" increase with heap protection enabled (cloned)
Reported by: | Matthew J Fletcher | Owned by: | Sebastian Huber |
---|---|---|---|
Priority: | low | Milestone: | 6.1 |
Component: | score | Version: | 5 |
Severity: | normal | Keywords: | |
Cc: | joel@… | Blocked By: | |
Blocking: |
Description
Cloned from #4643:
Investigating the "Total number of failed allocations:" from the wkspace cmd i see that;
/* Statistics */
++stats->failed_allocs;
Are incremented when _Heap_Allocate_aligned_with_boundary fails, however it seems this will routinely fail due to;
_Heap_Protection_free_all_delayed_blocks seemingly on purpose creating an impossibly large allocation.
uintptr_t large = 0
- (uintptr_t) HEAP_BLOCK_HEADER_SIZE
- (uintptr_t) HEAP_ALLOC_BONUS
- (uintptr_t) 1;
void *p = _Heap_Allocate( heap, large );
This makes it difficult to place a breakpoint on failed_allocs to investigate true low memory situations with heap protection enabled.
Change History (1)
comment:1 Changed on 04/28/22 at 07:13:22 by Sebastian Huber <sebastian.huber@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
In [changeset:"8b18037f203b2b2dfceae4fb46e7eca388f229ad/rtems" 8b18037f/rtems]: