[ruby-cvs:70539] normal:r63448 (trunk): thread: reduce GET_THREAD calls
normal at ruby-lang.org
normal at ruby-lang.org
Thu May 17 06:54:42 JST 2018
normal 2018-05-17 06:54:42 +0900 (Thu, 17 May 2018)
New Revision: 63448
https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63448
Log:
thread: reduce GET_THREAD calls
This allows native_sleep to use less stack (80 -> 64 bytes on
x86-64) for GVL_UNLOCK_BEGIN/END. For future APIs, we will pass
`ec` or `th` around anyways, so the BLOCKING_REGION change
should be beneficial in the future.
Modified files:
trunk/thread.c
trunk/thread_pthread.c
trunk/thread_win32.c
More information about the ruby-cvs
mailing list