Skip to content

Commit b10e17b

Browse files
committed
Update comment
1 parent 3d98af2 commit b10e17b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/reactor_common.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,8 @@ void _lf_initialize_timers(environment_t* env) {
550550
}
551551
}
552552

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.
553+
// To avoid runtime memory allocations for timer-driven programs
554+
// the recycle queue is initialized with a single event.
556555
if (env->timer_triggers_size > 0) {
557556
event_t *e = _lf_get_new_event(env);
558557
_lf_recycle_event(env, e);

0 commit comments

Comments
 (0)