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 cb0078a commit 3d98af2Copy full SHA for 3d98af2
core/reactor_common.c
@@ -551,8 +551,8 @@ void _lf_initialize_timers(environment_t* env) {
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 and the last event
555
- // needs to be initialized to the event recycle queue.
+ // An LF program with n timers require n+1 events. By putting the
+ // last event on the recycle queue we avoid allocating it at runtime.
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