[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Alignment issue?
From: |
David Chisnall |
Subject: |
Re: Alignment issue? |
Date: |
Mon, 8 Jul 2013 12:01:22 +0100 |
On 6 Jul 2013, at 08:58, Richard Frith-Macdonald <address@hidden> wrote:
> If anyone knows a clang equiivalent of __BIGGEST_ALIGNMENT__, we could/should
> change to use it, since using 16 may waste space on some architectures and
> may not be enough on others (though I know of none).
This will result in some extra wasted space on all objects that do not contain
vectors. I've now fixed (somewhat over defensively, but I'll relax it a bit
before the next release) the ivar layout code in the runtime so that it will
ensure that the instance variables all have the alignment that they need (or,
currently, a bit more in some cases). In GC mode, this extra padding is not
added.
David
-- Send from my Jacquard Loom