This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Alignment of stack traces
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Subject: Re: Alignment of stack traces
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Thu, 01 Mar 2001 15:18:25 +1300
- CC: "'java at gcc dot gnu dot org'" <java at gcc dot gnu dot org>
- References: <140D21516EC2D3119EE7009027876644049B5C4B@hplex1.hpl.hp.com>
"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 ]