#1037 closed defect (fixed)
Memory pool alignment error when alignment is set to be greater than the default (thanks John Ridges for the report)
Reported by: | bennylp | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-1.6 |
Component: | pjlib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: |
Description
When alignment is set to be greater than default alignment, the memory allocated from the pool may not be aligned to the required alignment, because the pool's start memory block is not aligned to the required alignment.
Note that ticket #980 had attempted to fix this but it missed few other locations where the bug occurs.
Change History (2)
comment:1 Changed 15 years ago by bennylp
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 15 years ago by bennylp
In r3082:
- bug in aligning pointer if sizeof(long) is less than sizeof(void*). Thanks John Ridges for pointing this out
Note: See
TracTickets for help on using
tickets.
Fixed in r3081: