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 image cache Date: Sat, 04 May 2024 19:51:01 +0200 Message-ID: References: <875xvvp3fo.fsf@gmail.com> <87jzkb0whv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27711"; 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 Sat May 04 19:51:56 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 1s3JYC-0006rz-68 for ged-emacs-devel@m.gmane-mx.org; Sat, 04 May 2024 19:51:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3JXY-0007ET-Cv; Sat, 04 May 2024 13:51:16 -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 1s3JXQ-0007Dm-CF for emacs-devel@gnu.org; Sat, 04 May 2024 13:51:10 -0400 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3JXN-0003iu-Ig; Sat, 04 May 2024 13:51:08 -0400 Original-Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-51f57713684so728945e87.1; Sat, 04 May 2024 10:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714845063; x=1715449863; 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=4UiOpxpGA+QVScCjM8N4jBnSe4vcrYnYfBnNp9TSgUw=; b=V4CoLvke0Pvott+IxNfX2Lgs/IRS4fgFdRfWVvkmfEe08ybdHgawtKjMRmI5nPqMgw bCqrhzFfIl5hY1dW7ULoMZOHCIjCTI7yORjjJ0Ae/hMOOdAefrw4sE2qDZeo68wGrT6G nXJ2zR9jKJJqOb284ICD0nruGdo4OCkaB50GByesqN8gSd/nzAMmxzLXVOQ1mItlV889 5YBK83R0bmlB9SVLhdRGS84/qoGD9uEI9RfSA4qZz29Fc/6jHl1blcBQ87F84shq/9rO IY/XDEWzXS0lataMB12Pu2bQ2lOtM8e5aNBLbrt0b75NNw5i/YSAsoNQQ/AxDF8ZZmiY 8YWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714845063; x=1715449863; 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=4UiOpxpGA+QVScCjM8N4jBnSe4vcrYnYfBnNp9TSgUw=; b=w3UgTZVpfS60J85POC7ZScuDgnSpO5DQfYctMbPiDYBVUc9JUPSXtj6vsGRlkpB3xq Oy/IxQ2hbzgUvZ6Lx6cwcjRPOKNFHn7ZHiwKEFO9IfH42EdDdUHat5CWe8DvnCFy4C+f 501AVG254pbalGYleZa3NgA0x2cuyeTc6+3YEfOD6N/npTUU0LhJbKxTknPNNylwMF9H O0q346O1DbHWjVj5qmnyKSZGL0bliBsDYVxxfcVGS3mbfsh73Jei59ivqgNWD3uFYIEB D4u50kCXHoD9qFGwpaG3FPdNL4XYQE75mn4QC1Zb7tSMIzNZxutcnpxUkIwjNYf66YXr j+DA== X-Forwarded-Encrypted: i=1; AJvYcCUW3QBms07B+qoV3bbJ4HTvVcMScfz9D3hd4JbxAP8yhKt964yPee52zv2qirZ9P7aK6KyL3TFBqH6HAOSxQm3Qx/PY X-Gm-Message-State: AOJu0YziGr4PQCyl02thAs9sl6Xlc7hQ9i8lqw0r8ofugt7CcxEwgEFn GZIC96gwenVeTcT6d0QJDXkrZUTvhomoPAW5H2DhP/zSYxik0fndRCHS4Q== X-Google-Smtp-Source: AGHT+IFjrgWR+WtLNQ/PZEHlASIUWordyaJb5Zjd7AR4J3ECcY8r+ovQo0oTuaKtJxNA6m3AH4EQzg== X-Received: by 2002:a05:6512:3043:b0:51b:d237:8053 with SMTP id b3-20020a056512304300b0051bd2378053mr4379279lfb.57.1714845062634; Sat, 04 May 2024 10:51:02 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36fc9.dip0.t-ipconnect.de. [217.227.111.201]) by smtp.gmail.com with ESMTPSA id bo1-20020a0564020b2100b00572a8c07345sm3115167edb.54.2024.05.04.10.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 10:51:02 -0700 (PDT) In-Reply-To: <87jzkb0whv.fsf@gmail.com> (Helmut Eller's message of "Fri, 03 May 2024 17:02:20 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=gerd.moellmann@gmail.com; helo=mail-lf1-x135.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:318753 Archived-At: Helmut Eller writes: >>> There is a bit of an issue with proper initialization of the structs >>> pointed to by those roots. E.g. x_term_init uses xzalloc, puts pointers >>> into the struct, and only then stores the pointer to the struct in >>> x_display_list. So what should be the root, the struct (registred >>> immediately after the call to xzalloc) or the global variable >>> x_display_list? >> >> Hm. > > For my case, the troublesome field was xi_device_t.name. I decided to > make x_display_info and xi_device_t amigous roots, because there is > usually only one x_display_info and dozen of xi_device_t. Pushed. Sorry for the delay I somehow overlooked your patch. (And the amigos are the reason I write "ambig" :-).)