From 906ad1670a2c589c271953b08b963440d35bac9f Mon Sep 17 00:00:00 2001 From: normal Date: Wed, 15 Aug 2018 05:31:31 +0000 Subject: thread_pthread.h (native_thread_data): split list_node between ubf and gvl Do not waste extra memory for each thread, but make thread_pthread.c easier-to-follow as a result. [ruby-core:88475] [Misc #14937] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'thread_pthread.h') diff --git a/thread_pthread.h b/thread_pthread.h index 60e0fe0ea3..8fb1d521b6 100644 --- a/thread_pthread.h +++ b/thread_pthread.h @@ -21,7 +21,10 @@ typedef pthread_cond_t rb_nativethread_cond_t; typedef struct native_thread_data_struct { - struct list_node ubf_list; + union { + struct list_node ubf; + struct list_node gvl; + } node; #if defined(__GLIBC__) || defined(__FreeBSD__) union #else -- cgit v1.2.1