Generally, it is unneccessary to zero the unused parameter regs since we don't expect them to be read by the called function. However, Valgrind may complain about accessing uninitialized memory so it's preferable to zero them for now.
Signed-off-by: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro> --- arch/x86/call.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/x86/call.c b/arch/x86/call.c index bd272bb..08b7ac9 100644 --- a/arch/x86/call.c +++ b/arch/x86/call.c @@ -128,6 +128,9 @@ unsigned long native_call(struct vm_method *method, else regs[r++] = args[i]; + while (r < 6) + regs[r++] = 0; + __asm__ volatile ( /* Copy stack arguments onto the stack. */ "movq %%rbx, %%rcx \n" -- 1.6.0.6 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel