From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A24A6208DB; Mon, 28 Aug 2017 23:47:43 +0000 (UTC) Date: Mon, 28 Aug 2017 23:47:43 +0000 From: Eric Wong To: spew@80x24.org Subject: Re: [PATCH v2?] thread_pthread.c: avoid infinite loop Message-ID: <20170828234743.GA27737@dcvr> References: <20170809232533.14932-1-e@80x24.org> <20170828232657.GA22848@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170828232657.GA22848@dcvr> List-Id: diff --git a/thread_pthread.c b/thread_pthread.c index 8299224ca0..5b230d46a5 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1675,7 +1675,7 @@ rb_thread_create_timer_thread(void) } /* validate pipe on this process, volatile since order matters: */ - timer_thread_pipe.writing = 0; + assert(timer_thread_pipe.writing == 0); timer_thread_pipe.owner_process = getpid(); timer_thread.created = 1; }