From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: MPS: scroll-bars Date: Sun, 05 May 2024 20:02:13 +0200 Message-ID: <87jzk8p26y.fsf@gmail.com> References: <875xvvp3fo.fsf@gmail.com> <87r0eicht1.fsf_-_@gmail.com> <87plu29lcc.fsf@yahoo.com> <87fruyccs8.fsf@gmail.com> <878r0q9dzd.fsf@yahoo.com> <87a5l4r8xu.fsf@gmail.com> <86jzk8cipc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30076"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: gerd.moellmann@gmail.com, luangruo@yahoo.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 05 20:02:48 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 1s3gCG-0007i3-0h for ged-emacs-devel@m.gmane-mx.org; Sun, 05 May 2024 20:02:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3gBw-00029x-Gf; Sun, 05 May 2024 14:02:28 -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 1s3gBn-000293-FD for emacs-devel@gnu.org; Sun, 05 May 2024 14:02:19 -0400 Original-Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3gBm-0001y4-0Y; Sun, 05 May 2024 14:02:19 -0400 Original-Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a59a5f81af4so279182666b.3; Sun, 05 May 2024 11:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714932135; x=1715536935; 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=1p8usHfobVskgj4cnDPaCTFVkFwuytTlaMXry18cibo=; b=mchF7gm77xxYsKsh3EnXCmSdIrXL1PmbCKrE6mWr1c05bs6v4r2X8I0VBExkvE1J8r z483de5O2lsbg+rMqivQgDa/02e2kL9cmcRaFC2zc4Q3bFFozATkZhgC3xFGWhPbQxD4 RPGBSIsolIgTE+HYfDO+/0xuBh/sQ7t2bDIGeWqZgctIpLjk8wjoDbalFfLW7HTRTh0B 4fpLZwNQGaSgFIN9DXl0419nV6l0R+jQJwZElrU0FnSNMprmSaz4T6fv1Hhtwg27h+UM ydhF12B27Uzfn3o3ELMXaewWloKyAP2hZ7mMA/lWDiJ8l+3pdEullvllbx0iaZCP7vJa 72Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714932135; x=1715536935; 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=1p8usHfobVskgj4cnDPaCTFVkFwuytTlaMXry18cibo=; b=BINFNs93JfxyNAsZsDByR+WSuDjrTz27nF2uYzY62KqjXWC8SpI72wz/DBpbn7P+27 uKHUf+6xUNzTLCvP7WjYzwptYajjEchpHRSeJXEgT0YACGIoFVS/mGMwJcnAYLJ8VyPr SHo6lUxUAZOd+T+kwCDytuRLvoVMLB5jY9bM2zjjRZmYJgqHysDxdCrB3ADIUW68+QA5 k8nuwlpYfxxRUtoN8bMrFjZhEF9xwAsf1yQIH1yqAaWI/eZwRyEQStnLrcUgbwqfqBCz 1M45svmJqpQeQ7Ap2s4vJtrtziHEp8qCFN7J0cTDn8vx5KFlGSmau82Hz3tKhJRCyI/2 lNuA== X-Forwarded-Encrypted: i=1; AJvYcCXbGii3YuYfSjRTyEREajjs5qtwXaUQnmMhweeL6eNsr5872vW45osSspeKkfNah/vE+36SDbc8TGqwYBmhrtMXJ/up X-Gm-Message-State: AOJu0YzWIsCIq5pTGPjtlcnaEfZbsfrwVoEhjM4zIHxRelqPIaiYtFv7 nW0Gp4p2HvhX3qDZXSi6p0jf9zTVphWkwWxIi07Uwddl49Gr9S6lni0a3w== X-Google-Smtp-Source: AGHT+IEaKev/VK4BBrvh4FF1dzkeC0kG2tf+rrNvfJnGMTyD4TpQHOsjt9tG/HopwSj35mPIkp3jhQ== X-Received: by 2002:a50:d79a:0:b0:572:a723:f1f4 with SMTP id w26-20020a50d79a000000b00572a723f1f4mr5511969edi.3.1714932134467; Sun, 05 May 2024 11:02:14 -0700 (PDT) Original-Received: from caladan (dial-184253.pool.broadband44.net. [212.46.184.253]) by smtp.gmail.com with ESMTPSA id a9-20020aa7d749000000b005704419f56csm4173148eds.86.2024.05.05.11.02.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 11:02:14 -0700 (PDT) In-Reply-To: <86jzk8cipc.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 05 May 2024 19:43:59 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=eller.helmut@gmail.com; helo=mail-ej1-x62a.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:318857 Archived-At: On Sun, May 05 2024, Eli Zaretskii wrote: > Can you tell, for my own education, what does a call to > igc_xzalloc_ambig give us, as opposed to just xzalloc? igc_xzalloc_ambig allocates memory like xzalloc but it addition registers it as root. When MPS starts scanning, it begins from the roots. That means, we are sure that the referenced objects stay alive. In the case of ambiguous references, the objects are also pinned (i.e. don't move). That pinning part is not necessary for the scroll-bar case, but igc_xzalloc_ambig is currently the easiest to use function available in igc.h.