#1731: Assumption made about buffer header alignment
-------------------------------------+--------------------------------------
Reporter: Paul C. Anagnostopoulos | Owner: Paul C. Anagnostopoulos
Type: bug | Status: assigned
Priority: normal | Milestone:
Component: core | Version: 2.6.0
Severity: low | Keywords:
Lang: | Patch:
Platform: |
-------------------------------------+--------------------------------------
Comment(by doughera):
Replying to [comment:7 Paul C. Anagnostopoulos]:
> Which approach should we take?
It depends on what buffers are supposed to be able to store. If they are
supposed to be able to store arbitrary items (e.g. FLOATVALS, or
structures) then they must be aligned properly for those structures, which
may require padding. If they are not supposed to be able to store
arbitrary items, then less strict alingment may be appropriate.
I was not able to find any documentation for what they are supposed to be
able to store. Many of the comments in the source about alignment date
back to times when there was a "cache" element in most of the structures
that could hold a FLOATVAL, and may not apply anymore.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1731#comment:8>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets