[Kaffe] memset in "javacall.c" on mips platform

ColinYen colin.yen at gmail.com
Fri Sep 23 04:18:33 PDT 2005


Hi,All:

I run kaffe(1.1.X_CVS_20050930) on mips platform.
If Kaffe(intrp) run "memset(call.args, 0,
(METHOD_NARGS(meth)+engine_reservedArgs(meth)+2)*(sizeof(jvalue)+2));"
in "KaffeVM_callMethodA" in "kaffe/kaffevm/javacall.c", system get
error message.
I find "Can't access bad memory" exception.

message:
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
  at java.lang.Object.getClass (Object.java:331)
  at java.security.Permissions.add (Permissions.java:112)

But I remove statement "memset(call.args, 0,
(METHOD_NARGS(meth)+engine_reservedArgs(meth)+2)*(sizeof(jvalue)+2));"
Kaffe can run correctly.

I don't know what's happen? Please help me.

Thank a lot.

Colin Yen




More information about the kaffe mailing list