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: Problem with dynamic modules Date: Sun, 19 May 2024 18:47:02 +0200 Message-ID: References: <868r06aqf4.fsf@gnu.org> <8634qdbyni.fsf@gnu.org> <86zfslahqf.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="3381"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: dancol@dancol.org, 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 May 19 18:48:04 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 1s8jhb-0000Tx-WB for ged-emacs-devel@m.gmane-mx.org; Sun, 19 May 2024 18:48:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8jgs-0006Fz-Hj; Sun, 19 May 2024 12:47:18 -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 1s8jgh-0006Du-8d for emacs-devel@gnu.org; Sun, 19 May 2024 12:47:08 -0400 Original-Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s8jgf-0007zA-R0; Sun, 19 May 2024 12:47:07 -0400 Original-Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a5a7d28555bso691446666b.1; Sun, 19 May 2024 09:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716137224; x=1716742024; 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=HNaV3Q/RZwFxjGv39fC+g+nqCJF0wUKtadzKDEZna2U=; b=UC/SqHhZBl4HI9vkoyDOchNQSnTau2pwDt+dUlSIhs/hzs1WhzBdQnn0JdD2BWGRtj DSWRc6ttyhHOx2LFAV8/EfKg4hnMeCS4BTRE2lPWrBmx3sSWRQWLo5ByR7cFuaC4LlBM j6lGwEPXhDZkxdSeximppbTTk6ZbKITclFdQyd3wFwi//Zwej4yqA+cCFYbbN00Y0oLR Jxej8EOvKQoCLDDDz6MLfc0xGZuH5i2x2cYrH1mx46oqMt+wbUh0UPFgaDg3MLJ9x4qB PSP6qsDA+vaTd0oGpJd4VlbRkRvM5Pu9ynTVHKquD37efcW5faj+qnDz3G8Wde0O0hJR cwPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716137224; x=1716742024; 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=HNaV3Q/RZwFxjGv39fC+g+nqCJF0wUKtadzKDEZna2U=; b=lK0ZCYovD6gAaGeqlez28VaIqkZalJbqfW6KFl28fPKTs8v+jJF8vAsWQchebbz51P jLRXZh37/trDWWlei86q7irBezC739pmjX5xbLwsQwbxIIEoQpvDl1jJv8fKCcZ0PAkH /qEnSkGp+S22KPJ+2VxlJkwttrLOwU5Ewx/lRm8JMy15EI2d4h3tdd5swzO9amJYhA8L fx32VSWo0BYhj73puWUGoC+/kUK+nzuGBvb4/n1oCx/QbvE8TIQw5318GYDJ6aUyOZtF BvhbDW2nyWwJOYK8jWkmDhfcxe4BIC6w/JI/fovyB0AILM2JWGBCeovZt2VAPLOzvChx YZWg== X-Forwarded-Encrypted: i=1; AJvYcCUIyQ/POwi8YskpqXF3KfBoTnHwuAnJBu2o3MCRwM34zDeewD56mNOHCxcJz8wl5acYA/y5gM71ntXW+0vrLNWeiure X-Gm-Message-State: AOJu0Yw5cgVgrmipH0LzNxZtJBgiqQAmngYjv29vacEMcIEoCo69lRIY 6CAjj6I1Xpoxo8KJHPlyJ7PRQt2f4gWHr2IwYFyUTdRVCDbZTEmr7BShdw== X-Google-Smtp-Source: AGHT+IH0NW8iKTGbPfaae0E7JmCAh9E1MALBrqciOnFGMCMOax3mRLZ1lsavPW9mhvhRykFwGWwPjA== X-Received: by 2002:a17:907:1118:b0:a59:c5c2:a320 with SMTP id a640c23a62f3a-a5a2d581b19mr1797473166b.23.1716137223546; Sun, 19 May 2024 09:47:03 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36d54.dip0.t-ipconnect.de. [217.227.109.84]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a58aed0d3sm1047383666b.68.2024.05.19.09.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 09:47:03 -0700 (PDT) In-Reply-To: <86zfslahqf.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 May 2024 19:28:40 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x632.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:319379 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: Daniel Colascione , eller.helmut@gmail.com, >> emacs-devel@gnu.org >> Date: Sun, 19 May 2024 18:17:06 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> > No, I mean tell the pool we are using now that this vector cannot be >> > moved. AFAIU, this should be possible, and we do that in other cases, >> > no? >>=20 >> Sort of. The only way to do this is to add a reference to the object to = an >> ambiguous root. I.e. we need some registry data structure for such >> objects and make that an ambig root. > > That sounds like the easiest solution, no? Hm, I wouldn't say so. The easiest for me would be to malloc the value, followed by using the AMS pool, followed by implementing a tree or whatever is good for that purpose, making it a root and scan it.