Skip to content

Commit 3a2e56e

Browse files
committed
Fix USE_MN_THREADS=0 builds on macOS
This was recently broken.
1 parent a3af4e9 commit 3a2e56e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vm_dump.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,13 @@ rb_vmdebug_thread_dump_state(FILE *errout, VALUE self)
515515
static bool
516516
is_coroutine_start(unw_word_t ip)
517517
{
518+
#if USE_MN_THREADS
518519
struct coroutine_context;
519520
extern void ruby_coroutine_start(struct coroutine_context *, struct coroutine_context *);
520521
return ((void *)(ip) == (void *)ruby_coroutine_start);
522+
#else
523+
return false;
524+
#endif
521525
}
522526
# endif
523527

0 commit comments

Comments
 (0)