Cyclone Scheme
0.28.0
|
◆ Cyc_st_add
Value:
{ \
gc_thread_data *thd = (gc_thread_data *) data; \
/* Do not allow recursion to remove older frames */ \
if ((char *)frame != thd->stack_prev_frame) { \
thd->stack_prev_frame = frame; \
thd->stack_traces[thd->stack_trace_idx] = frame; \
thd->stack_trace_idx = (thd->stack_trace_idx + 1) % MAX_STACK_TRACES; \
} \
}
Register a frame in the stack trace circular buffer.
|