[ruby-cvs:71619] normal:r64527 (trunk): thread_pthread.c: use eventfd instead of pipe on Linux

normal at ruby-lang.org normal at ruby-lang.org
Sat Aug 25 04:19:01 JST 2018


normal	2018-08-25 04:19:01 +0900 (Sat, 25 Aug 2018)

  New Revision: 64527

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64527

  Log:
    thread_pthread.c: use eventfd instead of pipe on Linux
    
    Based on r64478, any regular user creating more than 1024 pipes
    on Linux will end up with tiny pipes with only a single page
    capacity.  So avoid wasting user resources and use lighter
    eventfd on Linux.
    
    [ruby-core:88563] [Misc #15011]

  Modified files:
    trunk/configure.ac
    trunk/thread.c
    trunk/thread_pthread.c


More information about the ruby-cvs mailing list