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: Sun, 15 Oct 2017 17:39:38 +0200 Message-ID: <874lr0zah1.fsf@linux-m68k.org> References: <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> <83shemi1ab.fsf@gnu.org> <1c1e89b4-74d6-cdd5-3251-0848f5cd9d87@cs.ucla.edu> <83mv4uhvdo.fsf@gnu.org> <8760bi7yog.fsf@linux-m68k.org> <83infhj527.fsf@gnu.org> <871sm59a3n.fsf@linux-m68k.org> <83fualj0bu.fsf@gnu.org> <0eb00b68-7ff9-1a07-b756-8cf6219faf93@cs.ucla.edu> <83mv4sh298.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1508082044 15229 195.159.176.226 (15 Oct 2017 15:40:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Oct 2017 15:40:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: Paul Eggert , fabrice.popineau@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 15 17:40:36 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 1e3l1k-0002Po-CP for ged-emacs-devel@m.gmane.org; Sun, 15 Oct 2017 17:40:32 +0200 Original-Received: from localhost ([::1]:57593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3l1o-00035A-L5 for ged-emacs-devel@m.gmane.org; Sun, 15 Oct 2017 11:40:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3l11-00034s-95 for emacs-devel@gnu.org; Sun, 15 Oct 2017 11:39:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3l10-0002kI-Fg for emacs-devel@gnu.org; Sun, 15 Oct 2017 11:39:47 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:43738) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e3l0w-0002gR-Ne; Sun, 15 Oct 2017 11:39:42 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3yFQcX10syz1qrN9; Sun, 15 Oct 2017 17:39:39 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3yFQcW4kk5z1qqkP; Sun, 15 Oct 2017 17:39:39 +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 Gea0HMITBF2e; Sun, 15 Oct 2017 17:39:38 +0200 (CEST) X-Auth-Info: tvvpnWpQnxX22Vt3I8dIZTslZNpv805CErZU3vklYcCXyV58PqQ5nuWUnAu9cEz3 Original-Received: from igel.home (ppp-188-174-154-33.dynamic.mnet-online.de [188.174.154.33]) (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; Sun, 15 Oct 2017 17:39:38 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 329182C2D6F; Sun, 15 Oct 2017 17:39:38 +0200 (CEST) X-Yow: I want you to organize my PASTRY trays... my TEA-TINS are gleaming in formation like a ROW of DRUM MAJORETTES -- please don't be FURIOUS with me -- In-Reply-To: <83mv4sh298.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 15 Oct 2017 18:14:27 +0300") 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:219549 Archived-At: On Okt 15 2017, Eli Zaretskii wrote: > OOC, when a program does > > struct foo *ptr = malloc (sizeof struct foo); > > how is the alignment of the resulting pointer arranged to be "the > maximum of the struct members"? RTFM: The malloc() and calloc() functions return a pointer to the allocated memory, which is suitably aligned for any built-in type. If you need non-standard alignment, see aligned_alloc(3). 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."