Skip to content

Commit

Permalink
give io loop thread and spesh thread a name
Browse files Browse the repository at this point in the history
continuous integration shall help me figure out how to
make this not explode on non-gnu systems
  • Loading branch information
timo committed Jul 16, 2020
1 parent 32ce5f9 commit a4cb0c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/io/eventloop.c
Expand Up @@ -83,6 +83,7 @@ static void enter_loop(MVMThreadContext *tc, MVMCallsite *callsite, MVMRegister
uv_loop_t *loop = tc->instance->event_loop;
uv_async_t *async = tc->instance->event_loop_wakeup;

pthread_setname_np(pthread_self(), "async io thread");
/* Bind the thread context for the wakeup signal */
async->data = tc;

Expand Down
1 change: 1 addition & 0 deletions src/spesh/worker.c
Expand Up @@ -15,6 +15,7 @@ static void worker(MVMThreadContext *tc, MVMCallsite *callsite, MVMRegister *arg
tc->instance->boot_types.BOOTArray);
});

pthread_setname_np(pthread_self(), "spesh optimizer");
tc->instance->speshworker_thread_id = tc->thread_obj->body.thread_id;

MVMROOT2(tc, updated_static_frames, previous_static_frames, {
Expand Down

0 comments on commit a4cb0c5

Please sign in to comment.