From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS make-thread Date: Sun, 23 Jun 2024 12:27:42 +0200 Message-ID: References: <87v823xvq1.fsf@localhost> <87zfre1p3r.fsf@gmail.com> <87zfreo5u6.fsf@localhost> <87plsa1n8k.fsf@gmail.com> <87wmmio3vq.fsf@localhost> <87jzii1hbs.fsf_-_@gmail.com> <8734p61evv.fsf@gmail.com> <87cyoa3w5d.fsf@localhost> <87le2whkt2.fsf@localhost> <86sex4g53k.fsf@gnu.org> <864j9kfbm0.fsf@gnu.org> <86zfrcdoqt.fsf@gnu.org> 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="40572"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: yantar92@posteo.net, eller.helmut@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 23 12:28:16 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 1sLKSF-000AJ6-UN for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Jun 2024 12:28:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLKRp-0008P3-Hm; Sun, 23 Jun 2024 06:27:49 -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 1sLKRn-0008Ou-Gv for emacs-devel@gnu.org; Sun, 23 Jun 2024 06:27:47 -0400 Original-Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLKRm-0002wb-2D; Sun, 23 Jun 2024 06:27:47 -0400 Original-Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a6fe118805dso100800666b.3; Sun, 23 Jun 2024 03:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719138463; x=1719743263; 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=F5KD9tpBS7qW+vBmecp7i7xsB5VmbLGbwvKzPBpY7+I=; b=IGdh6uUOD5j04a6KLBcxXB6Xo7jOwcHxB4hZHzJ8fy3RnxsRUtHVNQ5BuwPDqOsEBK +gYHurbLLk7njX8Mdp6XJjtF+6abBmHT/pHjTskX8Y9yzl63pt5PHzMdUCEurC4ApfgU ebsZcP1HXySh9l7e6jF+9CuIiLeFV47nvoOUsnz//sUKqG9SDcN+d32RjTMPfxXSMz5a 4D59FfiEdDZP1i3UnJXp4STAQ7jyiJZfbSDGQnplcVcgVmudsJG8HWQnShv8KQ7nL346 dv1Nw1DbQmH3Hqkl+Ti6VAsj+TcKPaqJ524z0uam0/hYzlacXY+XsSL5CpVtO8whTtjQ KMKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719138463; x=1719743263; 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=F5KD9tpBS7qW+vBmecp7i7xsB5VmbLGbwvKzPBpY7+I=; b=lhF1C0Y4khgdFJRfqDrSxoZVm1NhUBD2CRxZUpU20GVSIWALtk317+AojZYGtlINSr IF3l4gBRlN8GAMR9Thfe08FAhNxv+Q+K1ec0cMs/aevpeWYNHAx2uvy65mcfuh5jyPis K7wY4wS0P0h0VA4VrbNNZ4+b515Z8/DYmo/YgHpjS19bUAc6++OeoXgUgDDIty1X+HgA m0Mks2mAbrf+6fclp6jDsOTHPPR37Alx1C4eU2S1WOFniVYvhnKv3/etjKJyeftyYghi BYFmwczRHk1VogtSRiahA/cCc+OusYFRU7HSKtPcxotn/IAHzR3G2lbyVKHGWtlfD52U BkOw== X-Forwarded-Encrypted: i=1; AJvYcCVaUYzOzW0gs67qTsqqwfM6bc2AV3SXRv7iJKWTnvWHJ9UIXuxIGcYhkeTAhpgtv9/mJDlqQyCOUouzN7HhhYsU+K+8 X-Gm-Message-State: AOJu0YzDw6rawc2Lk5Uc50dgQTR5IzV5A6LgsWLxP3kDOB0mI5jvVdQa taoGUCeQsWASe0B3nACefVsqXUGfG9zlAa3B7ueum403beAeYpWO+qfxcw== X-Google-Smtp-Source: AGHT+IEgNIk/4I+MDtbmWj4wE26dmrE0IUGUHsSgCUPTx/+4Vijd8+Ce1XXL2L3/pTiMz2XmOtalIQ== X-Received: by 2002:a17:907:c5ce:b0:a72:4c32:7d89 with SMTP id a640c23a62f3a-a724c327e82mr74959666b.54.1719138463188; Sun, 23 Jun 2024 03:27:43 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3abd0.dip0.t-ipconnect.de. [79.227.171.208]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7241fdc7cfsm119209066b.42.2024.06.23.03.27.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 03:27:42 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sun, 23 Jun 2024 12:21:16 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x635.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:320510 Archived-At: Gerd M=C3=B6llmann writes: > Gerd M=C3=B6llmann writes: > >> Eli Zaretskii writes: >> >>>> igc_collect calls mps_arena_collect which acquires the MPS lock, does a >>>> full collection, and leaves the arena in parked state, so that the >>>> caller has to mps_release it itself, which we do in igc_collect. This = is >>>> explicitly only intended for debugging purposes. It is thread-safe. >>> >>> Then why did we get the MPS assertion about warm and cold in this case? >> >> I don't know, but I think the real error happens before that. The >> backtrace from my debug version shows that something is wrong with the >> mps_thr_t that it is using. > > FYI, I think I have it. Pushing later. That went better than I expected... Pushed, please let me know if it works for you.