diff options
author | Koichi Sasada <[email protected]> | 2022-05-24 04:54:26 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2022-05-24 10:06:51 +0900 |
commit | 741ac503309f32b5c39073f46a205c99a31d4b0e () | |
tree | 907d6202cd218365df1049766303bd8e218e57de /thread_pthread.h | |
parent | 9c9c217045179869faf6caa7271bcb2e7c2e252c (diff) |
`native_tls_get()`' should not check results
caller should check the result of `native_tls_get()`.
Notes: Merged: https://.com/ruby/ruby/pull/5933
-rw-r--r-- | thread_pthread.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -102,11 +102,8 @@ typedef pthread_key_t native_tls_key_t; static inline void * native_tls_get(native_tls_key_t key) { - void *ptr = pthread_getspecific(key); - if (UNLIKELY(ptr == NULL)) { - rb_bug("pthread_getspecific returns NULL"); - } - return ptr; } static inline void |