Skip to content

Commit 7d5c828

Browse files
committed
Remove unused reductions in Context
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
1 parent 1cb7e56 commit 7d5c828

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/libAtomVM/context.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ struct Context
119119
// Ports support
120120
native_handler_f native_handler;
121121

122-
uint64_t reductions;
123-
124122
unsigned int leader : 1;
125123
unsigned int has_min_heap_size : 1;
126124
unsigned int has_max_heap_size : 1;

src/libAtomVM/scheduler.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,6 @@ Context *scheduler_run(GlobalContext *global)
281281

282282
Context *scheduler_next(GlobalContext *global, Context *c)
283283
{
284-
c->reductions += DEFAULT_REDUCTIONS_AMOUNT;
285-
286284
// Remove c from running and append it at the end of ready list
287285
// c could already be in ready queue, if it received a message.
288286
SMP_SPINLOCK_LOCK(&global->processes_spinlock);

0 commit comments

Comments
 (0)