From: Gabriel Corona Date: Mon, 24 Nov 2014 12:19:14 +0000 (+0100) Subject: [mc] Fix the stack cleaner X-Git-Tag: v3_12~732^2~200 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/cd84ed2b393b564f5d8bfdaae60b814f81f24dc4 [mc] Fix the stack cleaner The condition was broken and the %rsp limit was too high. --- diff --git a/tools/stack-cleaner/clean-stack-filter b/tools/stack-cleaner/clean-stack-filter index a7c87fe117..95a3b520f4 100755 --- a/tools/stack-cleaner/clean-stack-filter +++ b/tools/stack-cleaner/clean-stack-filter @@ -26,9 +26,9 @@ sub emit_code { # This is a crude hack to disable the stack cleaning on the main # stack. It rellies on the fact that the main stack is high in # the address space and the other stacks are in the hap (lower). - print("\tmovq \$0x7ffff7ff8000, %r11\n"); + print("\tmovq \$0x7fff00000000, %r11\n"); print("\tcmpq %r11, %rsp\n"); - print("\tjbe .Lstack_cleaner_done$id\n"); + print("\tjae .Lstack_cleaner_done$id\n"); # Loop over the stack frame quadwords and zero it: print("\tmovabsq \$$qsize, %r11\n");