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]

Re: Alignment of stack traces


"Boehm, Hans" wrote:

> natThrowable.cc contains the code:
>
>       // ???  Might this cause a problem if the byte array isn't aligned?
>       stackTrace = JvNewByteArray (n * sizeof p[0]);
>       memcpy (elements (stackTrace), p+1, (n * sizeof p[0]));
>
> What's the right solution here?  Should the stack trace just be an array of
> java longs?  This would overconstrain the 32-bit case, but that doesn't seem
> to be a big deal.

Or an Array of Objects? Maybe we need a new type that is like RawData except it
is marked by GC, but isn't expected to have the usual java object header.

regards

  [ bryce ]



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