[ruby-cvs:69656] normal:r62475 (trunk): thread_pthread.c (rb_thread_create_mjit): set detach before create

normal at ruby-lang.org normal at ruby-lang.org
Mon Feb 19 08:58:30 JST 2018

normal	2018-02-19 08:58:30 +0900 (Mon, 19 Feb 2018)

  New Revision: 62475


    thread_pthread.c (rb_thread_create_mjit): set detach before create
    This should be slightly cheaper on NPTL as it does not rely on
    atomics to set pd->joinid.   We already use pthread_attr_setdetachstate,
    so it won't introduce new problems by using a function we did not
    use before.

  Modified files:

More information about the ruby-cvs mailing list