repo.or.cz
/
ruby.git
/
commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
3a2e56e
)
vm_dump.c: avoid `USE_MN_THREADS` is not defined warning
author
Jean Boussier
<
[email protected]
>
Mon, 5 May 2025 13:55:42 +0000
(5 15:55 +0200)
committer
Jean Boussier
<
[email protected]
>
Mon, 5 May 2025 13:55:42 +0000
(5 15:55 +0200)
vm_dump.c
patch
|
blob
|
blame
|
history
diff --git
a/vm_dump.c
b/vm_dump.c
index
592de8a
..
2a863dd
100644
(file)
--- a/
vm_dump.c
+++ b/
vm_dump.c
@@
-515,7
+515,7
@@
rb_vmdebug_thread_dump_state(FILE *errout, VALUE self)
static bool
is_coroutine_start(unw_word_t ip)
{
-#if USE_MN_THREADS
+#if
defined(USE_MN_THREADS) &&
USE_MN_THREADS
struct coroutine_context;
extern void ruby_coroutine_start(struct coroutine_context *, struct coroutine_context *);
return ((void *)(ip) == (void *)ruby_coroutine_start);