#1382: auto::alignptrs: Eliminate this config step
-----------------------+----------------------------------------------------
Reporter: jkeenan | Owner: jkeenan
Type: RFC | Status: assigned
Priority: normal | Milestone:
Component: configure | Version: 1.9.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
-----------------------+----------------------------------------------------
Comment(by doughera):
Replying to [comment:4 jkeenan]:
> Paraphrasing some comments from plobsing on #parrot:
>
> ''The assertions at lines 188 and 202 of src/pmc/unmanagedstruct.pmc
(trunk) check that the pointers are aligned to a 2**n char boundary
(required on some obscure platform I'm sure).''
>
> (But it appears we have yet to encounter such a platform. -- kid51)
Actually it's a reasonably common requirement on RISC processors. SPARC
is one well-known example, but there are many others. It's more that x86
doesn't require any such alignment constraints, so many programmers are
unfamiliar with them.
I suspect that these checks are a holdover from when Parrot tried to
manage alignment manually in many cases. It does less of that now. If
pointers are allocated and used appropriately, then the compiler will
guarantee that they are suitably aligned for their stated purpose, and no
assert() checks are required.
I'd say "Just delete the lines."
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1382#comment:5>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets