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: staticpro everything Date: Wed, 01 May 2024 09:32:18 +0200 Message-ID: <87o79qng1p.fsf@gmail.com> References: <87bk5tc1j6.fsf@gmail.com> <877cghc0yy.fsf@gmail.com> <86jzkhu5rv.fsf@gnu.org> <87ttjlabic.fsf@gmail.com> <87v8408wsr.fsf@gmail.com> <87o79sasl5.fsf@gmail.com> <87plu72y8h.fsf@gmail.com> <877cgfwe5g.fsf_-_@gmail.com> <871q6mptkj.fsf@gmail.com> 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="6054"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 01 09:33:17 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 1s24Sr-0001OX-IQ for ged-emacs-devel@m.gmane-mx.org; Wed, 01 May 2024 09:33:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s24S5-0006XI-4J; Wed, 01 May 2024 03:32:29 -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 1s24S1-0006X1-LU for emacs-devel@gnu.org; Wed, 01 May 2024 03:32:27 -0400 Original-Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s24Ry-0001qL-3z; Wed, 01 May 2024 03:32:24 -0400 Original-Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-41a1d2a7b81so2691905e9.0; Wed, 01 May 2024 00:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714548740; x=1715153540; 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=tok0YvEpKSonAaVIIip/7ayH69aYtKnwmvDiv3nYRTo=; b=LRWS9eLU1ouX+ZYt2JXjsCfMjeD2fS81xPr2gcEnQIB2FHf60fzspAb++kGOzxlqFL uIcjCjoBHgJTz2tRSTts8agwM27OCtXWGlcQzWSk3DwQGoY+AsxO1x8OXwAAxZuDKSM7 e8q1XGdesTNjAMnnJfO70KYYpknep/h6+HLRp9xv9p3yF+bh2ZmUcUsilBwXrVqtgwoB 3E/wUISv8f8XfC+bYW9mCFfCbKJEe7MP8MYifgFWcAj/iTgfWAhJ+pigwp9TRWfR6Vht 3KBFkAomHaFPCG6PFrocKh2hRNDmhpCcxr+OooEeikUa9PN2M6BAHqjHU3ftAbYi9S3Y TDjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714548740; x=1715153540; 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=tok0YvEpKSonAaVIIip/7ayH69aYtKnwmvDiv3nYRTo=; b=Z6LZ6ZkZ59qvOBq0MMwO7+yRiHrDcl+gjWamnm+cY/8ZlU2FOQI+xPJNXH6psoL9CT IKVnO2/7dM9dJuy13ZjFVGFPR7fnHg4onAc+fJcvSLHswBd7dsic18Vw8Ar+jSWUDbKn QFUFjIalQ+/zUxjr0JkEMCww2WhKF8HTttQN0APDX31TKOKVjXvu/OI7bgjGrYiplzuU J3M5eXqxa2KHoUSPkwGPDnGQOFYD6/+hxWDd2kbKbc2DjC2pnIUZouYN2PB0V4YR0LEa ic6FhhKZdQe3MwfEQduINHzuIxA7Db/PyF/wrvao7DLW920rzyfHleVugimdIcqSaWD9 Know== X-Forwarded-Encrypted: i=1; AJvYcCVBfGEPOMG8StbsyWG7GalBvJluGjm7j0QvjsLHCF8x9m2z0IaL0VFkiQoA/Nv4IbxgwD2MFEkMX2fxdtXNvoshJzRW X-Gm-Message-State: AOJu0YzxnbnrwzTRyj7SzXcmcKAdiW5EiQ2CJaiHiBNdc7XIIpNK8TQb zgIDG5YfRW1Bcp43NigzpXMUEGAzvQhOgBEE7GHv5z5BYMgW9NBdpObwrg== X-Google-Smtp-Source: AGHT+IEANTuwPWtY/zv0+6enPplz4r3chDSjszBH+j+gAVrlP/iWeJt2spkzyTJkrdF2f0wQYZGtFw== X-Received: by 2002:a05:600c:1f82:b0:41b:8c5c:31b9 with SMTP id je2-20020a05600c1f8200b0041b8c5c31b9mr1619041wmb.14.1714548739742; Wed, 01 May 2024 00:32:19 -0700 (PDT) Original-Received: from caladan (dial-177152.pool.broadband44.net. [212.46.177.152]) by smtp.gmail.com with ESMTPSA id v17-20020a05600c471100b0041abdaf8c6asm1325469wmo.13.2024.05.01.00.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 00:32:19 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Wed, 01 May 2024 08:05:27 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=eller.helmut@gmail.com; helo=mail-wm1-x329.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:318453 Archived-At: On Wed, May 01 2024, Gerd M=C3=B6llmann wrote: > Moin Helmut. > > I'm looking at struct coding_system and the staticpro's. And I'm > what to do with coding_system::source. > > struct coding_system > { > const unsigned char *source; > > Clang shows me that > > coding_set_source (struct coding_system *coding) > { > if (BUFFERP (coding->src_object)) > { > struct buffer *buf =3D XBUFFER (coding->src_object); > > if (coding->src_pos < 0) > coding->source =3D BUF_GAP_END_ADDR (buf) + coding->src_pos_byt= e; > else > coding->source =3D BUF_BYTE_ADDRESS (buf, coding->src_pos_byte); > } > else if (STRINGP (coding->src_object)) > { > coding->source =3D SDATA (coding->src_object) + coding->src_pos_b= yte; > > I'm not sure what is with the buffer case, but the string case means > that source can point to string data, which is in our MPS leaf_pool. I > think we cvould use an exact scan function for that purpose, analogous > to scan_specpdl. WSYT? Yes, I think would work. But I just realized that now that about any char* needs to be looked upon very carefully to decide if it could point to the leaf_pool. That's a problem. Maybe a show-stopper kind-of problem.