This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: am I not cool enough for you?
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Andrew Haley <aph at cambridge dot redhat dot com>
- Cc: Adam Megacz <gcj at lists dot megacz dot com>, java at gcc dot gnu dot org
- Date: Mon, 10 Jun 2002 16:22:06 -0400 (EDT)
- Subject: Re: am I not cool enough for you?
On Mon, 10 Jun 2002, Andrew Haley wrote:
> + unsigned int* stack = (unsigned int*)elements(stackArr);
>
> You'll get alignment faults if you do this -- you can't cast a jbyte*
> to a jlong*.
True in general, but isn't the 0th array element guaranteed to be
word-aligned in this case?
Jeff