From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: MPS make-thread Date: Fri, 21 Jun 2024 17:42:28 +0200 Message-ID: <8734p61evv.fsf@gmail.com> References: <87v823xvq1.fsf@localhost> <87r0crxung.fsf@localhost> <87le2zxsqx.fsf@localhost> <8634p6n7jd.fsf@gnu.org> <87tthm3gq2.fsf@gmail.com> <87sex6ags5.fsf@localhost> <87msne3flr.fsf@gmail.com> <87frt63dvt.fsf@gmail.com> <86o77ulgk8.fsf@gnu.org> <87zfre1p3r.fsf@gmail.com> <87zfreo5u6.fsf@localhost> <87plsa1n8k.fsf@gmail.com> <87wmmio3vq.fsf@localhost> <87jzii1hbs.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6025"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , Eli Zaretskii , emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 21 17:43:02 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sKgPl-0001NT-UF for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Jun 2024 17:43:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKgPS-0001g1-35; Fri, 21 Jun 2024 11:42:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKgPJ-0001eN-TX for emacs-devel@gnu.org; Fri, 21 Jun 2024 11:42:34 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sKgPI-0004Fh-EI; Fri, 21 Jun 2024 11:42:33 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-42172ed3597so13158305e9.0; Fri, 21 Jun 2024 08:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718984549; x=1719589349; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bBC8A9ySMx02VqpGnszJEIObGGHYySQDt/GOyT/QN3Y=; b=OkJ4d+Dt5B6Sz48CjPwL7K422ieoEdkP0kw24z2PkXs88fzJnzFskvfCaWanXLkiih 5GHr7b+KPzH+ip2uh6ExlYkVhjDSfXkaOUMW9ZPQ/f+AIymmfLBB6AK//QfGV25uJilH 8XtiuJNPpYWDaAjfv7/IKUQeE7umngMulvxByIRSLq7kW5IkblwhM26foHbAnGcBYayr WX3YmoRuOauhws1/ABM7tUOvkUwrA0MJLDXJ1qc9K/WhsC/N7wpMVH15P34BtA9zUOq3 MWFCrimYoSu/6M+FOVNUtB0BMUZ9bOzPrwySJHuBnozXojNIKEbc+ySWWL/F/20p9pHf dgZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718984549; x=1719589349; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=bBC8A9ySMx02VqpGnszJEIObGGHYySQDt/GOyT/QN3Y=; b=KTS+2ZyzjQtl0velLeyjoOgfiGNr+mhNyECh/Fk//sY+u+ZmFxLmK+AdAMQb5qo3zh bUfKtbQjUcw+X3RjawBLA09RHwtRS4+Rp/sEJmrTs2PfDGP3cDn+63SoYg3ERqlzZIBG xN+BeBsPDZID8K6Npm0gxymQMJ2+s2h6ep1G/AVio4ClrBi6FG23MZozUm+GVYi5oslI xTu5yCZ9Q0UBuxZlpi7x1Ns9jQNJKJOjBXWaa21Bvh61Y7PdEA04KcQnLLCJkjg4lBRq 8m6wfwTZPgStwFlpQkvM5lFTv87UmlyFp36fPg888Cr5PdSX9WeUBmALwU1Giri6MTS8 fgvA== X-Forwarded-Encrypted: i=1; AJvYcCU/SLJG6/HtfymQW6mh+fVL/1plmQS5FIIyMplYJSTAZzPXyRG+ngqFqhYo3RcJPDUBBFiVsNTgv40LdhV9MDar3C+0NDyga2pj5sG27HULvOw= X-Gm-Message-State: AOJu0YyJkSsqfz/XW96frnOmzO89CzuFZm6Iv9J81O0uWF3/w9hlnHNG G/L9bSikrh0KdSEzdVcOB7fGBW07WE6Zi8s9MVcGPJpTYfEN2/7APRSgZQ== X-Google-Smtp-Source: AGHT+IE2qmNj+nH/RvXJUhQS0iNZOA/yr6bVRXNXCE5Mi6wC5MSS/lD3Dh23mnhFF3S5qkxn79GDaQ== X-Received: by 2002:a05:600c:26c7:b0:424:737c:80e8 with SMTP id 5b1f17b1804b1-424862d6806mr1825965e9.2.1718984549409; Fri, 21 Jun 2024 08:42:29 -0700 (PDT) Original-Received: from caladan ([31.177.116.19]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-424817b5549sm34600625e9.23.2024.06.21.08.42.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 08:42:29 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Fri, 21 Jun 2024 17:33:40 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=eller.helmut@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320416 Archived-At: On Fri, Jun 21 2024, Gerd M=C3=B6llmann wrote: > It's the xfree in run_thread here: > > struct handler *c, *c_next; > for (c =3D handlerlist_sentinel; c; c =3D c_next) > { > c_next =3D c->nextfree; > xfree (c); > } > > c is an MPS objects. I can fix that later after verifying that all > handlers are now in MPS. I think current_thread and all_threads also need to be roots.=20=20 > Unless someone(tm) is quicker, of course. I'll delay looking at threads until native compilation works :-)