alignment test case

Andrew Haley aph@redhat.com
Wed Mar 19 10:24:00 GMT 2003


Andrew Haley writes:
 > Tom Tromey writes:
 >  > >>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
 >  > 
 >  > Andrew> I was too quick to accept blame.  My patch is correct AFAICS.
 >  > 
 >  > Andrew> I think this is a c++ bug.  See
 >  > Andrew> http://gcc.gnu.org/ml/gcc/2003-03/msg01196.html.
 >  > 
 >  > Ok.  We need some resolution on this asap, even if it means adding a
 >  > workaround to gcjh.  As it stands I had to disable my nightly builds,
 >  > since many test programs hang.  We can't ship 3.3 like this.
 > 
 > 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.

But I want C++ opinion on whether this really is a bug.  It sure looks
like one to me.

Andrew.



More information about the Java mailing list