Commit 8e4680a9 authored by John van Groningen's avatar John van Groningen
Browse files

bug fix for 64 bit linux with stack tracing or time profiling, for the profile...

bug fix for 64 bit linux with stack tracing or time profiling, for the profile stack size use 4096 + the limit from getrlimit (RLIMIT_STACK) instead of the a stack size
parent 30514c8a
......@@ -741,8 +741,18 @@ init_profiler:
ifdef LINUX
mov r13,rsi
mov r14,rdi
mov rsi,rsp
mov edi,3
call getrlimit
mov rdi,qword ptr[rsp]
add rdi,4096
test eax,eax
je use_stack_limit
mov rdi,qword ptr ab_stack_size
use_stack_limit:
call malloc
mov rsi,r13
mov rdi,r14
else
......
......@@ -166,8 +166,18 @@ init_profiler:
ifdef LINUX
mov r13,rsi
mov r14,rdi
mov rsi,rsp
mov edi,3
call getrlimit
mov rdi,qword ptr[rsp]
add rdi,4096
test eax,eax
je use_stack_limit
mov rdi,qword ptr ab_stack_size
use_stack_limit:
call malloc
mov rsi,r13
mov rdi,r14
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment