aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorJean byroot Boussier <jean.boussier+github@shopify.com>2023-02-06 23:30:00 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-02-06 23:30:35 +0100
commitc19defd02665492de7147572714ebe692260c849 (patch)
treeabc68e28c4bc4c09e289ca85e09db8124b4ac8b7 /thread.c
parentc30602e64ce437be86180590eee27b0b6ed83a16 (diff)
downloadruby-c19defd02665492de7147572714ebe692260c849.tar.gz
Revert "Only emit circular dependency warning for owned thread shields"
This reverts commit fa49651e05a06512e18ccb2f54a7198c9ff579de.
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/thread.c b/thread.c
index 89c5572201..54055746db 100644
--- a/thread.c
+++ b/thread.c
@@ -4920,17 +4920,6 @@ rb_thread_shield_new(void)
return thread_shield;
}
-bool
-rb_thread_shield_owned(VALUE self)
-{
- VALUE mutex = GetThreadShieldPtr(self);
- if (!mutex) return false;
-
- rb_mutex_t *m = mutex_ptr(mutex);
-
- return m->fiber == GET_EC()->fiber_ptr;
-}
-
/*
* Wait a thread shield.
*