Skip to content

Commit

Permalink
Remove old mutemap based backpressure implementation
Browse files Browse the repository at this point in the history
The old mutemap based backpressure implementation is no longer
used due to the implementation of the new threshold based
backpressure implementation that stores information about
actors that triggered muting and actors to unmute on the actors
themselves.
  • Loading branch information
dipinhora committed Jun 22, 2022
1 parent 9cdcce6 commit 0574cd8
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 353 deletions.
1 change: 0 additions & 1 deletion src/libponyrt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ set(_c_src
platform/threads.c
sched/cpu.c
sched/mpmcq.c
sched/mutemap.c
sched/scheduler.c
sched/start.c
)
Expand Down
6 changes: 3 additions & 3 deletions src/libponyrt/actor/actor.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static void mute_actor(pony_actor_t* actor)
DTRACE1(ACTOR_MUTED, (uintptr_t)actor);
}

void ponyint_unmute_actor(pony_actor_t* actor)
static void unmute_actor(pony_actor_t* actor)
{
unset_sync_flag(actor, SYNC_FLAG_MUTED | SYNC_FLAG_MUTED_UNSCHEDULED);
DTRACE1(ACTOR_UNMUTED, (uintptr_t)actor);
Expand All @@ -129,7 +129,7 @@ static void reschedule_actors_to_unmute(pony_ctx_t* ctx, pony_actor_t* actor)
while(actors_to_unmute != NULL)
{
actors_to_unmute = actorlist_pop(actors_to_unmute, &to_unmute);
ponyint_unmute_actor(to_unmute);
unmute_actor(to_unmute);
ponyint_sched_add(ctx, to_unmute);
DTRACE2(ACTOR_SCHEDULED, (uintptr_t)sched, (uintptr_t)to_unmute);

Expand Down Expand Up @@ -546,7 +546,7 @@ bool ponyint_actor_run(pony_ctx_t* ctx, pony_actor_t* actor, bool polling)
// we no longer need to be muted but we never got unscheduled
actor->muted = 0;
actor->muter = NULL;
ponyint_unmute_actor(actor);
unmute_actor(actor);
reschedule_actors_to_unmute(ctx, actor);
}

Expand Down
2 changes: 0 additions & 2 deletions src/libponyrt/actor/actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ PONY_API void pony_apply_backpressure();

PONY_API void pony_release_backpressure();

void ponyint_unmute_actor(pony_actor_t* actor);

PONY_API void ponyint_destroy(pony_ctx_t* ctx, pony_actor_t* actor);

#ifdef USE_MEMTRACK
Expand Down
80 changes: 0 additions & 80 deletions src/libponyrt/sched/mutemap.c

This file was deleted.

32 changes: 0 additions & 32 deletions src/libponyrt/sched/mutemap.h

This file was deleted.

Loading

0 comments on commit 0574cd8

Please sign in to comment.