From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 1C02A1F87F for ; Wed, 21 Nov 2018 10:59:34 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 1895E120FB1; Wed, 21 Nov 2018 19:59:32 +0900 (JST) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by neon.ruby-lang.org (Postfix) with ESMTPS id 5A22A120FBD for ; Wed, 21 Nov 2018 19:59:23 +0900 (JST) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D96B51F87F; Wed, 21 Nov 2018 10:59:20 +0000 (UTC) Date: Wed, 21 Nov 2018 10:59:19 +0000 From: Eric Wong To: ruby-core@ruby-lang.org Message-ID: <20181121105919.GA14581@cinder> References: <20181120084406.kcipybgonhzequ46@dcvr> <20181120151528.l5xexnabypb6e7mo@dcvr> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20181120151528.l5xexnabypb6e7mo@dcvr> X-ML-Name: ruby-core X-Mail-Count: 89920 Subject: [ruby-core:89920] Re: Thread::Light patch against r65832 X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" > But I think this is a good change to maintain compatibility > and avoid inadvertant switching: Updated patch on top of 2/2 to disable switching properly with Mutex locked: https://80x24.org/spew/20181121095520.v4ddgpn6lufbvuvt@whir/raw Updated 2/2 with above patch squashed in (no change to 1/2): https://80x24.org/spew/20181121105744.14737-1-e@80x24.org/raw Updated pull request on top of r65903: The following changes since commit 2f023c5dbaadede9ceac3eb9ac0e73f3050e5ada: Get rid of variable modifiers of BSD make (2018-11-21 10:09:21 +0000) are available in the Git repository at: https://80x24.org/ruby.git thread-light-r65903 for you to fetch changes up to 61f89082a728fa8a37e014378becdcf62bf971f0: Thread::Light: green threads implemented using fibers (2018-11-21 10:14:06 +0000) ---------------------------------------------------------------- Eric Wong (2): unify sync_waiter, waitpid_state, waiting_fd w/ rb_sched_waiter Thread::Light: green threads implemented using fibers common.mk | 15 + configure.ac | 32 + cont.c | 437 +++++++++-- eval.c | 1 + fiber.h | 71 ++ hrtime.h | 8 + include/ruby/io.h | 2 + io.c | 36 +- iom.h | 109 +++ iom_common.h | 253 +++++++ iom_epoll.h | 652 ++++++++++++++++ iom_internal.h | 596 +++++++++++++++ iom_kqueue.h | 804 ++++++++++++++++++++ iom_pingable_common.h | 224 ++++++ iom_select.h | 577 ++++++++++++++ process.c | 212 +++--- .../wait_for_single_fd/test_wait_for_single_fd.rb | 69 ++ test/lib/leakchecker.rb | 9 + test/net/http/test_http.rb | 2 +- test/ruby/test_thread_light.rb | 828 +++++++++++++++++++++ test/ruby/test_thread_queue.rb | 85 ++- thread.c | 501 ++++++++----- thread_pthread.c | 80 +- thread_sync.c | 127 ++-- thread_win32.c | 16 +- vm.c | 10 + vm_core.h | 63 +- 27 files changed, 5372 insertions(+), 447 deletions(-) create mode 100644 fiber.h create mode 100644 iom.h create mode 100644 iom_common.h create mode 100644 iom_epoll.h create mode 100644 iom_internal.h create mode 100644 iom_kqueue.h create mode 100644 iom_pingable_common.h create mode 100644 iom_select.h create mode 100644 test/ruby/test_thread_light.rb