this pointer off by one?

Adam Megacz gcj@lists.megacz.com
Fri Nov 2 07:51:00 GMT 2001


Very bizarre... I have a native method written in C++ using CNI, but
within the body of the method, all variable accesses end up accessing
a memory location four octets (32 bits) beyond the proper location.
For example, I have two members:
 jint foo;
 jint bar;
Reading from bar yields the value that my java code had written into
foo! Reading foo yields random garbage (foo is the first member
variable).
I can't get this to happen with a small example program, but I can
send you the whole source blob if you need to see it for yourself
(it's pretty big).
I'm using GCJ 3.0.2. Any ideas what might cause this?
 - a
-- 
If the Boston Tea Party happened today, our politicians would denounce
it as an act of Terrorism.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /