This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: alignment test case
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: tromey at redhat dot com, GCJ Java <java at gcc dot gnu dot org>
- Date: Wed, 19 Mar 2003 09:31:04 -0500 (EST)
- Subject: Re: alignment test case
On Wed, 19 Mar 2003, Andrew Haley wrote:
> > I can't see any way to fix this without fixing the C++ problem. Well,
> > we could rewrite gcj to use the new ABI, but that's a long way down
> > the road.
>
> Actually there might be another way: use __attribute__((aligned)) on
> java.lang.Object. Then a subclass can never be more aligned than its
> superclass. Wastes memory, though.
I thought that with hash synchronization, boehm-gc always allocates on an
8-byte boundary anyway? Would aligning Object really waste memory?
Jeff