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: native comp Date: Tue, 30 Apr 2024 19:35:44 +0200 Message-ID: References: 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="9451"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org, Helmut Eller To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 30 19:36:34 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 1s1rP8-0002Dd-34 for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Apr 2024 19:36:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1rOY-0005Jl-KY; Tue, 30 Apr 2024 13:35:58 -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 1s1rOR-0005IN-1b for emacs-devel@gnu.org; Tue, 30 Apr 2024 13:35:53 -0400 Original-Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1rOO-0008On-Og; Tue, 30 Apr 2024 13:35:50 -0400 Original-Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2dfb4ea2bbfso42386231fa.2; Tue, 30 Apr 2024 10:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714498546; x=1715103346; 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=BPf7gAgPuxSOaRQgPZoH+5oPKjwdy34FOQCx8rI3KF8=; b=FWwW9lFpY93HX0WegTif1YupT3j88ftl90mTFZm9nglOaHlBAnUr0LHZD7ioJhB8fb dezDk/LAW03B76Yu1gXT7lE9rGiTZkLuOQq5g0SELddczjhmdixzs7B3suqH76ySfC7I KPDOyhIys1gaWkS//YvtuviFLbPiWE6jS3wYNOAWGJ0rF14IZdKTOGf0cn2pNYskXJfw rfegQoJROy6IVkX1V+r/WrlzCuQ4Y0fNx1TRL/50M4ORJknEzGfiMvyAg5QLxLo4LJ/I q4bGUB0DXbUOidXN0FWz6UkIjQW3fjmVjwoJbQE7/n6/m/YQiQn5mbXZCoUNS1Zv7Fl1 mWtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714498546; x=1715103346; 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=BPf7gAgPuxSOaRQgPZoH+5oPKjwdy34FOQCx8rI3KF8=; b=qzg/PFIfAMJR3UIGrsw33U/MssSaDP0B8YG5+/T3akgIeI3E+9O4OkFhw8r58PnaYU Uq4woAoZIH15wOkVTmWDsREhXreT1osrIwJQ5r5XHvH087YySacKkBAy22jx+qMNmYsg 7pHZW1UVK22zjKpB36VztknMYpMPEqTmC5z8Gl60bs7UlykaKL/UETbgizXceo7JukhF A0kZvA52I9uHp2pxcFsgsaOMLpnudeOtzgpj3zZ7MfD+fqvLzBqJLj2MD0vhkL7uOiZl SX2Nns/M0Le9BNRmOQaRMv2q5DWzjw6JyqaLd3MuwswgtQvjN9kEJcoreAks2xXOOuFG 80NQ== X-Forwarded-Encrypted: i=1; AJvYcCXACN3RjBlndSPLwgntIn66OlQnmvRy1EFCUqVgbOIeEeFrzF+BX7b9z4xE0amV+XTEvDvKYDvtE9V0ThxN5c9rCFtL X-Gm-Message-State: AOJu0YyFbfIwpV7QyqSAYal3kJP33Ux3qNRoTbQ3vQqyTU34CXWg4mEq eROwywnnkRg/77eePzKLarxGgd4Jyw70UBgHSeukPvnrG5X7zHZZ X-Google-Smtp-Source: AGHT+IFU6mv1HnKX+cZKFE17ANSVfh9b05k2QbJrecG6ZhofPmiQrVfnyVVBep4U05gahzuua5i2OA== X-Received: by 2002:a05:651c:102c:b0:2d8:4a22:7536 with SMTP id w12-20020a05651c102c00b002d84a227536mr257359ljm.48.1714498545603; Tue, 30 Apr 2024 10:35:45 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3ae18.dip0.t-ipconnect.de. [79.227.174.24]) by smtp.gmail.com with ESMTPSA id c7-20020a0564021f8700b0057000ecadb0sm14453247edc.8.2024.04.30.10.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 10:35:45 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Tue, 30 Apr 2024 16:02:10 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=gerd.moellmann@gmail.com; helo=mail-lj1-x22d.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:318439 Archived-At: Gerd M=C3=B6llmann writes: > Andrea Corallo writes: > >>> I'd personally prefer to trace comp units in the usual way for Lisp >>> objects, i.e. the fix_comp_unit. >>> >>> Main reason is simplicity. The tracing function is super simple, we only >>> have to identify where in the comp unit data structure, or dylib, >>> references exist that have to be traced. Registers/stack are not a >>> problem (see above). >>> >>> Other reasons, not so important, but anyway, is reducing the number of >>> roots. Every root adds to what MPS has to do. And ambig roots make >>> objects immovable, which is somewhat against the spirit of a copying >>> collector. >>> >>> Just my personal opinion, of course. >> >> Well other than spirit and possibly simplicity we should evaluate if >> (and in case how much) is the cost to have this objects movable vs >> non-movable. > > FYI: > > I have ambig roots for the relocs, as an experiment. That brings us > further. Bootstrap.pdmp is built successfully, and some .elns are > successfully built, too. It fails eventually in one file: > > ./lisp.h:1631: Emacs fatal error: assertion failed: STRINGP (a) > gmake[1]: *** [Makefile:285: ../lisp/files.elc] Abort trap: 6 > gmake: *** [Makefile:925: ../lisp/files.elc] Error 2 > > and it's super slow. The reasons for that I don't know, but I know for a > fact that I didn't do anything for CUs in the loaded dump, which is > probably not helpful. > > I think I let this ripe a bit. Maybe I find the reference in macroexp, > and then don't need the roots. But I'll push it. Good news, to close the evening, letting it simmer without thinking much helped again. It's indeed simple: There are references we don't trace, as one would naively expect. - comp_unit - ephemral relocs I'll try that tomorrow, without the ambig roots.