Re: [PATCH 2/2] x86: fix bug in emit_jni_trampoline()

2009-07-06 Thread Pekka Enberg
On Mon, 2009-07-06 at 01:16 +0200, Tomek Grabiec wrote: We cannot overwrite a register which is not saved (ESI) because this will lead to a corruption in JIT code. The proper solution is to copy the call arguments. Signed-off-by: Tomek Grabiec tgrab...@gmail.com I'm confused. What exactly

[PATCH 2/2] x86: fix bug in emit_jni_trampoline()

2009-07-05 Thread Tomek Grabiec
We cannot overwrite a register which is not saved (ESI) because this will lead to a corruption in JIT code. The proper solution is to copy the call arguments. Signed-off-by: Tomek Grabiec tgrab...@gmail.com --- arch/x86/emit-code.c| 37 +++--