We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d98af2 commit b10e17bCopy full SHA for b10e17b
core/reactor_common.c
@@ -550,9 +550,8 @@ void _lf_initialize_timers(environment_t* env) {
550
}
551
552
553
- // Create an extra event and put it on the recycle queue.
554
- // An LF program with n timers require n+1 events. By putting the
555
- // last event on the recycle queue we avoid allocating it at runtime.
+ // To avoid runtime memory allocations for timer-driven programs
+ // the recycle queue is initialized with a single event.
556
if (env->timer_triggers_size > 0) {
557
event_t *e = _lf_get_new_event(env);
558
_lf_recycle_event(env, e);
0 commit comments