From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 5141234acf: Refactor the webp cache code to allow usage by gif_load, too Date: Mon, 11 Apr 2022 16:22:32 +0300 Message-ID: <83o81769gn.fsf@gnu.org> References: <164967696186.12152.11548736665906939483@vcs2.savannah.gnu.org> <20220411113602.7A114C0581E@vcs2.savannah.gnu.org> <87bkx73jfz.fsf@yahoo.com> <83r16369xx.fsf@gnu.org> <87pmlnahjn.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16071"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 11 15:23:52 2022 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 1ndu1H-00041h-Ey for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 15:23:51 +0200 Original-Received: from localhost ([::1]:40396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndu1G-0007yO-DH for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 09:23:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndtzz-0005y1-7k for emacs-devel@gnu.org; Mon, 11 Apr 2022 09:22:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndtzy-0007OJ-SZ; Mon, 11 Apr 2022 09:22:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xumK9ZFkisDaT4jKtj43cvFKimAJfF4tIONZ00JD8nE=; b=NGj9V+MIgt/R ZnKLJ9EvuDT11BW6gQRYdnhSxs0TapPEWDZfw7XWr7F/TzMCD5MCGoKcZpk8M9xdvm0ExQOg79lIm +Ldh+LpCtkaOGvZJ7hprDdw2odvU906VT6XWHg01OH8gJJ8lyKvM4JAMOuqI4ovsy/5hUnZwiikkV taN1EEFHlcBtwR4Tha2hASZ8tklBZPc1O9XeEsC6kf9i+59I8E0jLFok8KcX5BNVtDJc0rNpH+DGs vC3ficm6wOnjfpA9+QghqGhNeC3Rotk2VqFtBN71K2yz1odC1hJhXjPEQkMS686tm/LZnbd86Y9qs Eu9bSitE008rpmeGcDjPtA==; Original-Received: from [87.69.77.57] (port=1221 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndtzx-0001iC-OY; Mon, 11 Apr 2022 09:22:30 -0400 In-Reply-To: <87pmlnahjn.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 11 Apr 2022 15:14:20 +0200) 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" Xref: news.gmane.io gmane.emacs.devel:288194 Archived-At: > From: Lars Ingebrigtsen > Cc: Po Lu , emacs-devel@gnu.org > Date: Mon, 11 Apr 2022 15:14:20 +0200 > > Eli Zaretskii writes: > > > 'spec' here is img->spec, right? > > Yup. So it's already marked when GC runs: static void mark_image (struct image *img) { mark_object (img->spec); <<<<<<<<<<<<<<<<<<<<<<<<<<<<< mark_object (img->dependencies); if (!NILP (img->lisp_data)) mark_object (img->lisp_data); }