summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-23 10:51:05 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-23 10:51:05 +0200
commitb3ffe9229ad8b91c455cc9d6f59463c83fd8a6a1 (patch)
treea0b47146f6459706e802ce3f3022e44992fd1cf4
parent389c6d35f2908018e8b6ae3f8294c02c6b5073a0 (diff)
eo: call stack depth is 1024
-rw-r--r--src/lib/eo/eo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 319eb09..e04e2a2 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -257,10 +257,10 @@ EAPI Eo_Hook_Call eo_hook_call_pre = NULL;
257EAPI Eo_Hook_Call eo_hook_call_post = NULL; 257EAPI Eo_Hook_Call eo_hook_call_post = NULL;
258 258
259#define EO_INVALID_DATA (void *) -1 259#define EO_INVALID_DATA (void *) -1
260// 1024 entries == 8k or 16k (32 or 64bit) for eo call stack. that's 1024 260// 1024 entries == 16k or 32k (32 or 64bit) for eo call stack. that's 1023
261// recursion entires it can handle before barfing. i'd say that's ok 261// imbricated/recursive calls it can handle before barfing. i'd say that's ok
262#define EO_CALL_STACK_DEPTH_MIN 16 262#define EO_CALL_STACK_DEPTH_MIN 1024
263#define EO_CALL_STACK_SHRINK_DROP 8 263#define EO_CALL_STACK_SHRINK_DROP (EO_CALL_STACK_DEPTH_MIN >> 1)
264 264
265typedef struct _Eo_Stack_Frame 265typedef struct _Eo_Stack_Frame
266{ 266{