This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: question about java::lang::String::getChars
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Randolph Chung <randolph at tausq dot org>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 20 Oct 2003 15:25:40 -0400 (EDT)
- Subject: Re: question about java::lang::String::getChars
On Sun, 19 Oct 2003, Randolph Chung wrote:
> While running the libjava testsuite on hppa, I notice that at least two
> tests were triggering unaligned accesses. The unaligned access happens
> in java::lang::String::getChars in the copy loop. Looks like sPtr is
> pointing to an unaligned address (0x50069 in this case). Is that
> supposed to happen? If so, should that method use memcpy instead?
Wild guess: your GC is broken, and the string object is overlaid with
non-String data?
(Is 0x50069 even a valid address on hppa?)
Jeff