From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#30364: 26.0.91; thread crash on macos Date: Mon, 19 Feb 2018 09:29:49 -0800 Message-ID: <3adcabd2-733e-fabf-7c2e-7032de42f5dd@dancol.org> References: <83k1vbbhvv.fsf@gnu.org> <83inavbg3p.fsf@gnu.org> <83eflic32p.fsf@gnu.org> <83zi469rge.fsf@gnu.org> <83vaeu9mtn.fsf@gnu.org> <83o9km9jr5.fsf@gnu.org> <83inau9hqa.fsf@gnu.org> <83eflhac8i.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1519061380 26198 195.159.176.226 (19 Feb 2018 17:29:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2018 17:29:40 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 Cc: 30364@debbugs.gnu.org, alan@idiocy.org, npostavs@gmail.com, npostavs@users.sourceforge.net To: Paul Eggert , Eli Zaretskii , Aaron Jensen , Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 19 18:29:35 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enpFq-000664-1y for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Feb 2018 18:29:30 +0100 Original-Received: from localhost ([::1]:51567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enpHs-0001uP-6x for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Feb 2018 12:31:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enpHR-0001ie-TM for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 12:31:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enpHN-0003AZ-N7 for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 12:31:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enpHN-0003AM-JE for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 12:31:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1enpHN-00057W-DV for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 12:31:05 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Feb 2018 17:31:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30364-submit@debbugs.gnu.org id=B30364.151906140419505 (code B ref 30364); Mon, 19 Feb 2018 17:31:05 +0000 Original-Received: (at 30364) by debbugs.gnu.org; 19 Feb 2018 17:30:04 +0000 Original-Received: from localhost ([127.0.0.1]:51548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enpGN-00054T-Of for submit@debbugs.gnu.org; Mon, 19 Feb 2018 12:30:04 -0500 Original-Received: from dancol.org ([96.126.100.184]:38976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enpGL-00053V-LH for 30364@debbugs.gnu.org; Mon, 19 Feb 2018 12:30:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=1HgJhn2d+vDe45+2WAVZZsRLyLs4Sv5GjqBosrBS87k=; b=ggKks0Ynk381dUu7di3oHm3UvXqkg6AdVxDKA6BDOMWCz7Jle52A/uaTDlizaS8jVqGF0wsEJxLszaQDGdftwEq1tbXfe2m8DuciuyC0hKYZInyUypGw7N0fuWinSojUs4n3IQjOd1XrmWAdcMjSdJbLRIX7485Zp6qevVTPTDh6LwyWLRfMSlsEqSrocwozUTSUHzhm338TTIpFzcolEhfLfNCytXQIbTYLOsAdNMwKLgJwvMvtUnKkRGxyWwyqNQMwZp1VsHM6ZvVeTzLmccuTCCo363WOusibPDJxrWwHKlAzL7I3J4QXR7ouaMtC6FMa9g8CXevlchy/kYB2Og==; Original-Received: from [2604:4080:1321:8ab0:a53d:5d5d:b924:65a4] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1enpGF-00010y-L5; Mon, 19 Feb 2018 09:29:55 -0800 In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143464 Archived-At: On 02/19/2018 09:24 AM, Paul Eggert wrote: > Eli Zaretskii wrote: >>> Would you like me to vary it based on 32-bit vs 64-bit? >> I think so, but I'd like to hear from others about this.  Paul, >> Andreas, could you please comment? > > A 64-bit Emacs should need more stack space than a 32-bit Emacs, yes. It > wouldn't be double the space, since not everything on the stack is a > pointer or an EMACS_INT. If you really want to fine-tune it you can also > depend on the width of EMACS_INT. Getting it "just right" would be a bit > tricky. > > 8 MiB/thread for 64-bit Emacs sounds OK to me. I wouldn't cheap out on > 64-bit platforms. What about just dedicating a thread to GC? We'd create it and have it wait on a condition variable. Any thread could signal the CV, block, and wait for GC to complete. It'd be pretty simple, I think, and unlike the "always GC on main thread" proposal, it wouldn't force everything on the main thread to be interruptible.