#1753: PMC attribute blocks not aligned
-------------------------------------+--------------------------------------
Reporter: Paul C. Anagnostopoulos | Owner: Paul C. Anagnostopoulos
Type: bug | Status: assigned
Priority: normal | Milestone:
Component: core | Version: 2.6.0
Severity: high | Keywords:
Lang: | Patch:
Platform: |
-------------------------------------+--------------------------------------
Comment(by Paul C. Anagnostopoulos):
When the attribute block is freed, it is chained on a list of free blocks
with a pointer at the beginning of the block. That pointer might need to
be aligned. This is why the allocator ensures that the block is at least
`sizeof (void *)` bytes in length. But it doesn't round up the size, so
every block except the first might be misaligned.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1753#comment:5>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets