This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: am I not cool enough for you?


Jeff Sturm writes:
 > 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?

No; it may break on Alpha.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]