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: dangling markers Date: Sat, 29 Jun 2024 23:38:16 +0200 Message-ID: References: <87v81u85hv.fsf@localhost> <87frsx81m2.fsf@localhost> <87cyo180y2.fsf@localhost> <874j9d7zqe.fsf@localhost> <87sewvg6lw.fsf@localhost> 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="24990"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , emacs-devel@gnu.org, Eli Zaretskii , eller.helmut@gmail.com To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 29 23:39:07 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 1sNfmi-0006Ht-Cz for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Jun 2024 23:39:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNfm2-00013Q-9B; Sat, 29 Jun 2024 17:38:22 -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 1sNfm1-00013D-EL for emacs-devel@gnu.org; Sat, 29 Jun 2024 17:38:21 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNflz-0005uV-RR; Sat, 29 Jun 2024 17:38:21 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-424ad991cbbso14455985e9.0; Sat, 29 Jun 2024 14:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719697098; x=1720301898; 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=3ejNufKrhH7ajTwDmPNn6nI+u9znDX3xI2SfxEgnvk8=; b=fSWonoz3mwSikU1eI99pUAdvLsTZO/0haaZDO3PJbX3wZ4GBAGTEQKdSVtibSBTPV/ ftj6Ib5VD0BZlYsztu+3ZpslhW/rtEsOfnaGNqCZP16c4Vt7XpgWFZl6eJCTW3yaoLt0 CWNnLrbKwWfnQpYV2U4ToTcMMkrx9yHFUpXrApHQCCMeBT4QyhUG4Rzcmukr4NM6tYnV VsisBAxrQYCsdOHXOZ3s4PnpgbASt8KfCy4RkuZ9gh6pWT9luS8XlxNukjytQz2jlwH4 sV02p5AfBwAW4Z7zAuR+b3q1vpBDjKe7RBploAl/AbaSAXmqZC7HlRvp1aPBuKgfFy4E x4DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719697098; x=1720301898; 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=3ejNufKrhH7ajTwDmPNn6nI+u9znDX3xI2SfxEgnvk8=; b=sQts1bO9dzb7ysTvHmKFQeKFzWNG/AtuMdzA/EyTmZg50Rzcui1wmuasFibIYbfokI lQAsnmjiFPBRVxuEUp9b0uFOzmYLYn2lCtEQcH1qtwIWFEXUUyI/FIo3K+wdYuNxM/eS 9pSPCl2IDakai3AJNjVt+wdNyXWMpzDitH8Zxj7woXPF5zR4cMVT606QRe2D7IXdsvAX +S4l/51V3y9wsmShRg0aMidFuW+EDOqjzT1zkETRMn8eOCu/GXYUOTNbXcDYdZW/yPV+ MmQ56rZC1UUjI+QQzyEasV2Zel3mukp4n3LrwJtVE5Rpdsh9r97+LXG5AEI4Mnapqmln iRVQ== X-Forwarded-Encrypted: i=1; AJvYcCUhtgG5bTGFoTqYEYSfwFRqNTFUdwWBZDrmJ/ehdV3VzFPOCIPbePBNo/LI37cJYMLpXC6RZ6+Ef7zkUg+WVfkqcd6JGIAo8Rkk2anKB3rbAPg= X-Gm-Message-State: AOJu0YwIY6+H2D61Qm1VE703rHcXcU2ekokvqwVql65Njd95xNPdYEar TzNTdVTY2Mo3wn4QyMvckJWxU5OBwsiNryP9fTeU4Hc3UHxCMlsH X-Google-Smtp-Source: AGHT+IHHMVj205EzJ2Pt22Fd4mvmPmTpZeEtIGzF4O7wH66NXY3kstUc11NN1UQhUIMH5Jldc6guWA== X-Received: by 2002:a7b:ca4a:0:b0:423:b756:cdaf with SMTP id 5b1f17b1804b1-4257a02f3b2mr11808315e9.23.1719697097621; Sat, 29 Jun 2024 14:38:17 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36598.dip0.t-ipconnect.de. [217.227.101.152]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256af3cf90sm90421425e9.5.2024.06.29.14.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jun 2024 14:38:17 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sat, 29 Jun 2024 23:20:33 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x332.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:320889 Archived-At: Gerd M=C3=B6llmann writes: > Gerd M=C3=B6llmann writes: > >> And that makes sense. I'll try tomorrow to add something to igc that >> Ihor can tell us how many markers there are that are allocated in the >> place Eli showed. > > Can't sleep (football), so: > > I ended up adding an integer parameter to build_marker, which is > different for each call site, because the markers built in marker.c > which Eli pointed to were not the problem, at least for what I did. > > I start Emacs, M-x igc-stats which let's me see the number of markers. > Then repeated g to see the number of markers go up. What I see is a > rapid growth in markers, by the hundreds each time I refresh, and the > histogram looks like this > > [0 12 3039 0 8 9 19 0 0 0 47365 8 13 0 0 0 0 0 0 0 2618 2618 0 0 0 0 0 > 0 0 0] > > And 10 is > > DEFUN ("point-marker", Fpoint_marker, Spoint_marker, 0, 0, 0, > doc: /* Return value of point, as a marker object. */) > (void) > { > return build_marker (current_buffer, PT, PT_BYTE, 10); > } > > Don't know who calls that, but it absolutely dominates. Pushed to scratch/igc. Use build-marker-counts to get the numbers.