From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Emacs-26 threads problem [win64] Date: Sat, 14 Oct 2017 11:26:17 +0200 Message-ID: References: <83h8v7r02e.fsf@gnu.org> <83vajnotik.fsf@gnu.org> <83r2ubosnd.fsf@gnu.org> <83fuaqpzaq.fsf@gnu.org> <837ew2pxx9.fsf@gnu.org> <83efq6khh3.fsf@gnu.org> <8ad9b8d2-1c9e-2db0-f166-58d08ea8321a@cs.ucla.edu> <837evyjkej.fsf@gnu.org> <6d41986e-2134-76df-ca37-2f394f1fa81e@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507973203 27120 195.159.176.226 (14 Oct 2017 09:26:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Oct 2017 09:26:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: Eli Zaretskii , fabrice.popineau@gmail.com, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 14 11:26:38 2017 Return-path: Envelope-to: ged-emacs-devel@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 1e3IiK-0006DW-Tc for ged-emacs-devel@m.gmane.org; Sat, 14 Oct 2017 11:26:37 +0200 Original-Received: from localhost ([::1]:53341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3IiS-0008Di-A5 for ged-emacs-devel@m.gmane.org; Sat, 14 Oct 2017 05:26:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3IiL-0008DN-A9 for emacs-devel@gnu.org; Sat, 14 Oct 2017 05:26:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3IiK-0002eV-Ch for emacs-devel@gnu.org; Sat, 14 Oct 2017 05:26:37 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:60711) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e3IiG-0002ZH-Ng; Sat, 14 Oct 2017 05:26:32 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3yDfNN6N1Yz1qs05; Sat, 14 Oct 2017 11:26:28 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3yDfNN3gwpz1qrlq; Sat, 14 Oct 2017 11:26:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 5YFbbWGwDjmg; Sat, 14 Oct 2017 11:26:27 +0200 (CEST) X-Auth-Info: TpGZiK6s6pMjhTNUFk/KARrDL7qNEg4WO7CVZbblXgWLXKQ1zVWTG+aRnisx7/tO Original-Received: from whitebox (ppp-188-174-157-117.dynamic.mnet-online.de [188.174.157.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 14 Oct 2017 11:26:27 +0200 (CEST) In-Reply-To: <6d41986e-2134-76df-ca37-2f394f1fa81e@cs.ucla.edu> (Paul Eggert's message of "Sat, 14 Oct 2017 01:05:59 -0700") X-Yow: I'm using my X-RAY VISION to obtain a rare glimpse of the INNER WORKINGS of this POTATO!! X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.18.0.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219495 Archived-At: On Okt 14 2017, Paul Eggert wrote: > diff --git a/src/alloc.c b/src/alloc.c > index 2e6399e..da0c3ad 100644 > --- a/src/alloc.c > +++ b/src/alloc.c > @@ -2923,9 +2923,13 @@ set_next_vector (struct Lisp_Vector *v, struct Lisp_Vector *p) > > enum > { > - /* Alignment of struct Lisp_Vector objects. */ > - vector_alignment = COMMON_MULTIPLE (FLEXALIGNOF (struct Lisp_Vector), > - GCALIGNMENT), > + /* Alignment of struct Lisp_Vector objects. Because pseudovectors > + can contain any C type, align at least as strictly as > + max_align_t. On x86 and x86-64 this can waste up to 8 bytes > + for typical vectors, since alignof (max_align_t) is 16 but > + typical vectors need only an alignment of 8. However, it is > + not worth the hassle to avoid wasting those bytes. */ That can be a lot of wastage for small vectors. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."