From 93be85a1eec13e41e5bb4121b6294275a09a12d5 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 10 Jul 2015 23:27:58 -0400 Subject: [PATCH] Added TODO --- runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.c b/runtime.c index b8d30ed6..5f577812 100644 --- a/runtime.c +++ b/runtime.c @@ -80,7 +80,7 @@ void Cyc_st_init() { } void Cyc_st_add(char *frame) { - /* add to circ buf */ + // TODO: do not add if (idx - 1) == frame, since that causes recursion to remove older frames Cyc_Stack_Traces[Cyc_Stack_Trace_Idx] = frame; Cyc_Stack_Trace_Idx = (Cyc_Stack_Trace_Idx + 1) % MAX_STACK_TRACES; }