[Bug 1873] Not enough workspace reserved with RTEMS Debug enabled.
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Thu Aug 4 06:25:20 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1873
--- Comment #8 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2011-08-04 01:25:19 CDT ---
(In reply to comment #6)
> On the heap protection overhead, I have another bit of information. Changing
> the _Configure_From_workspace() macro to use HEAP_BLOCK_HEADER_SIZE which also
> accounts for heap protection overhead did not fix it. I then added 4 to the
> formula so an extra 4 bytes is reserved per allocation and hello runs.
>
> #define _Configure_From_workspace(_size) \
> (ssize_t)((_size) + HEAP_BLOCK_HEADER_SIZE + CPU_ALIGNMENT + 4)
>
> Maybe I am missing an alignment factor thrown in when heap protection is turned
> on. Is there an alignment for the block itself and then for ending protection
> area?
>From my point of view this should be sufficient:
(_size) + HEAP_BLOCK_HEADER_SIZE + CPU_ALIGNMENT - 1
The extra +4 is a miracle to me currently.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list