[Bug 1873] Not enough workspace reserved with RTEMS Debug enabled.
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Wed Aug 3 17:18:39 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1873
--- Comment #6 from Joel Sherrill <joel.sherrill at oarcorp.com> 2011-08-03 12:18:36 CDT ---
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?
--
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