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 16:02:10 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="412"; 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 16:03:08 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 1s1o4a-000APx-5Z for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Apr 2024 16:03:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1o42-00048M-8c; Tue, 30 Apr 2024 10:02:34 -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 1s1o3n-0003gm-E0 for emacs-devel@gnu.org; Tue, 30 Apr 2024 10:02:20 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1o3j-000391-OL; Tue, 30 Apr 2024 10:02:17 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-518a56cdbcfso9163539e87.2; Tue, 30 Apr 2024 07:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714485732; x=1715090532; darn=gnu.org; h=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=EYBpfe9V5JNlAnyx58Nlwthd06D1M/LjPhdj6be2pQ0=; b=ZzQ/7N0zInQBLQteMFcnbMtj16cASHlf/Oe8im14W/BBmZYfZvHI5JYnJdO2p8W3Ve 28oYEe0qebNU3A7wU3hsEMM8D9TM0yxsN5UdXhKj1DIczwVQoc5kN4ntXHawqpXqJls5 yxuoKCwGqLlEQyNXFCJ5SXN8Nisx0nB0AC9Apu6WPuG2Jv2vjKsRaB4Y0ZXot+byx1tV 9C45FaUwdk1vjH5NOxujJr+2QNKyhRocw18vGEIz4kjyaafRPjRYZ1fTdOKAO7owHlZS EoD8155okK/7QwfqSLyokYamOnzKRbLAxy9nOdCzSC5uXYQwNCOWGWj0xcEKHQt3K+R4 Tb9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714485732; x=1715090532; h=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=EYBpfe9V5JNlAnyx58Nlwthd06D1M/LjPhdj6be2pQ0=; b=oLk/zkyIFJIYi+npjSWrtWXBoCDahgKebdAj8hkZn75WoNanyuYbQefXnA3KrS2sdc J+n4I5lKPbUlEQeykeiC4IZFlWHz7ZK6J9NB9rihVW4DWQlXReEpOfxoSpeuNKNv6pSb tDO3mKw8dk7ACIE+p7s3JDdsR3Topekh/GnUOeAj4ah3LIDvQZpBAvMoMN/+08wwDb5g AdjB5DST8+gmEMABuSYdzkVmFJ5RKU6p0GOfDa58aga5OiwBbvwXRn+cTGD9UD4+rAha PWPdNeUJxm3lhOj8fKj6Ngo6NUheR36n3/a9Z1SsQXPvssyfEpfsLslLbVnoPImmzJ4S Qs4w== X-Forwarded-Encrypted: i=1; AJvYcCVHtUCqNCfNHly5mOe+pEvBNxGp172JkogXN4whlxSZqdGxr0WghuyBHvczUG7i0ISrnrlpdylKcyse0tur7ISfNlSQ X-Gm-Message-State: AOJu0YwJhMSm+sWvxcipyEsGDtTmEe9aCyLNfXR+qvLd3CsCipwf0jEQ UzddMOg1kP/emS2GGjjh+LzUXeBpwaSgAG5qsMAdGwLUVu9c/P1c X-Google-Smtp-Source: AGHT+IHGCpaiVh8uJqhGDzcTE5VZ75Www0WZNt8mXnFxAzcXoIHFumGjMbbUmfiWLMteB53vfIm6Tg== X-Received: by 2002:a19:3855:0:b0:51b:9254:91e7 with SMTP id d21-20020a193855000000b0051b925491e7mr9868049lfj.61.1714485732144; Tue, 30 Apr 2024 07:02:12 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3ae18.dip0.t-ipconnect.de. [79.227.174.24]) by smtp.gmail.com with ESMTPSA id fy7-20020a170906b7c700b00a55b1253fe5sm11091381ejb.194.2024.04.30.07.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 07:02:11 -0700 (PDT) In-Reply-To: (Andrea Corallo's message of "Tue, 30 Apr 2024 05:40:41 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=gerd.moellmann@gmail.com; helo=mail-lf1-x12c.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:318433 Archived-At: 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.