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: Loaded pdump Date: Thu, 09 May 2024 20:24:12 +0200 Message-ID: References: <87bk5fp0km.fsf@gmail.com> <87seyrni6f.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="24502"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Emacs Devel To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 09 20:25:10 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 1s58S5-0006AY-Jt for ged-emacs-devel@m.gmane-mx.org; Thu, 09 May 2024 20:25:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s58RX-00052k-Dd; Thu, 09 May 2024 14:24:37 -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 1s58RI-0004pL-LY for emacs-devel@gnu.org; Thu, 09 May 2024 14:24:20 -0400 Original-Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s58RG-0005Vf-9J; Thu, 09 May 2024 14:24:19 -0400 Original-Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a59b49162aeso275916466b.3; Thu, 09 May 2024 11:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715279054; x=1715883854; 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=s2ei4XyJDNZy0TD1El8gpJvEbGgpeWwUJ8V96OnOqXM=; b=bidb+T9dqaKd3jgcyaZMmNvKTGmWftoV/GJrhhuYaZwBUt/h2iZcCUwfOuLdwosGpi ktYq4XgG6mqeh4Je6PMYk6dJ9PpXuo4iv9Tw2MWYJLcVFL1EHuXnXjpHWxeBieG5W+zZ Y1GApytVusTfgjWvxxIQ8MlujLD1pU08SYHmQhXcoLVwMrGhBZhmYPIqLAqDjQKyU91P VStIs6udXzc9AGrv7Hq+Wxcmnv5/ZzixjEVIn2WUZTdxOVe3Z/ySi9ruGhU26Ijvaxgv 1uVc1w8xn2FVsCrlZzHK9NixYB0moU1E/G6S3izAPJiSG4VMVSYeA4D22Gk4FSkM7K9s mGmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715279054; x=1715883854; 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=s2ei4XyJDNZy0TD1El8gpJvEbGgpeWwUJ8V96OnOqXM=; b=sqB7cjFMCxcYSohECG4GhGshn2oeA7NrqTBbS37ZkpJZeEvYN+OhvoVwPyUwgPzMi7 ofskWJq19fZBppIyo3EtdgtsSwMZhak8+LZECgVHPC6FoibGgSh906g95+RGigtMHBUW x0qOYByzjowEEq+moV70evkBATfdCoa0BmAMRJ7f4Ex5HBG1umLQUFVJMGLgzHHxKJcr wK4k3pIqz/gkBKUKNWpxffH57/55RtYwb3gaq8FK2qD0GN+ld00e6zC/XcVDUEwsLjoJ CGZQ+zeTiWqC/joiVbRIMuHDWXjTyFTxOStsQOHYN5jWE032bs3oVphaeH89BIp1cE58 fp5Q== X-Forwarded-Encrypted: i=1; AJvYcCWrLTntdT9ha201EKAgj1B37HzleR6ptNW2fTcC6ytY03Fiahl/HHq0i/EuNoSKJZ5uiJziWiulhYgtCyzNy89CT71h X-Gm-Message-State: AOJu0YyLm0ksPrYekmo+vLC64IqddWwZmdmXcnG2JRLBijz2Mlz2XJzd TORWgXSoqanFQwVFMt35RUulS3lk0w+ZZrEy0IQr7HhlAdy1K9U40vPd0g== X-Google-Smtp-Source: AGHT+IFztNda/dBaTM4/MiazZzv4eraMZ/YSptzybYfs508mLYxFO0NUNKcrBbR+3h2cF1tsJFQT8w== X-Received: by 2002:a17:906:1293:b0:a59:bde5:398 with SMTP id a640c23a62f3a-a5a2d536c98mr29640466b.14.1715279053670; Thu, 09 May 2024 11:24:13 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36021.dip0.t-ipconnect.de. [217.227.96.33]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b01517sm98549866b.157.2024.05.09.11.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 11:24:13 -0700 (PDT) In-Reply-To: <87seyrni6f.fsf@gmail.com> (Helmut Eller's message of "Thu, 09 May 2024 17:01:12 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x629.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:319098 Archived-At: Helmut Eller writes: > On Thu, May 09 2024, Gerd M=C3=B6llmann wrote: > >> Helmut Eller writes: >> >>> On Thu, May 09 2024, Gerd M=C3=B6llmann wrote: >>> >>>> - The root is unstructured. We can't scan exactly, and so can't do >>>> anything special for pointers to non-MPS memory that Lisp objects >>>> have. This leads to some horrible workarounds. >>> >>> The pdumper could put the different types (cons, symbol, string, >>> vectorlike) in different sections. Then we could probably scan it >>> exactly. >> >> Either that, or we could dump the igc_header with the objects. Don't >> know how difficult that would be. My gut tells me introducing more >> sections than the 3 we have could be more work. > > Had forgotten about that; with the additional advantage that the > existing scan code would work right away. But this looks also interesting struct dump_header { ... /* "Relocation" table we abuse to hold information about the location and type of each lisp object in the dump. We need for pdumper_object_type and ultimately for conservative GC correctness. */ struct dump_table_locator object_starts; I think I'll read the pdumper code a bit more in the next days.