From: Helmut Eller <eller.helmut@gmail.com>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: MPS: hash tables / obarrays
Date: Mon, 20 May 2024 10:10:58 +0200 [thread overview]
Message-ID: <87h6esewdp.fsf@gmail.com> (raw)
In-Reply-To: <m2ttithzvl.fsf@pro2.fritz.box> ("Gerd Möllmann"'s message of "Mon, 20 May 2024 06:27:10 +0200")
On Mon, May 20 2024, Gerd Möllmann wrote:
> Helmut Eller <eller.helmut@gmail.com> writes:
>> #2314# 635 #2194# 636 #2181# 637 #2022# 638 #1949# 639 #1891# 640 #1640#)) #s(comp-data-container nil #s(hash-table test
>>
>> So it could have something to do with hash tables after all.
>
> Could be, of course.
The hash table test wasn't scanned. Here is a test to show it:
(progn
(progn
(defconst foo-sym (make-symbol "foo"))
(define-hash-table-test foo-sym (function eql) (function sxhash-eql))
(defconst foo-var (make-hash-table :test foo-sym)))
(igc--collect)
(message "%s" foo-var))
And with this it works:
diff --git a/src/igc.c b/src/igc.c
index fd206a0ff01..362c0cc32da 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -1518,6 +1518,11 @@ fix_hash_table (mps_ss_t ss, struct Lisp_Hash_Table *h)
// FIXME: weak
IGC_FIX12_NOBJS (ss, h->key, h->table_size);
IGC_FIX12_NOBJS (ss, h->value, h->table_size);
+ const struct hash_table_test *p = h->test;
+ struct hash_table_test *test = (struct hash_table_test *)p;
+ IGC_FIX12_OBJ (ss, &test->user_hash_function);
+ IGC_FIX12_OBJ (ss, &test->user_cmp_function);
+ IGC_FIX12_OBJ (ss, &test->name);
}
MPS_SCAN_END (ss);
return MPS_RES_OK;
next prev parent reply other threads:[~2024-05-20 8:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-19 8:38 MPS: hash tables / obarrays Gerd Möllmann
2024-05-19 8:57 ` Eli Zaretskii
2024-05-19 9:12 ` Gerd Möllmann
2024-05-19 9:50 ` Helmut Eller
2024-05-19 10:14 ` Gerd Möllmann
2024-05-19 10:30 ` Helmut Eller
2024-05-19 11:21 ` Gerd Möllmann
2024-05-19 20:36 ` Helmut Eller
2024-05-20 4:27 ` Gerd Möllmann
2024-05-20 6:13 ` Gerd Möllmann
2024-05-20 8:10 ` Helmut Eller [this message]
2024-05-20 8:43 ` Gerd Möllmann
2024-05-29 12:00 ` Helmut Eller
2024-05-29 13:30 ` Gerd Möllmann
2024-05-29 15:00 ` Helmut Eller
2024-05-29 16:28 ` Gerd Möllmann
2024-05-29 16:52 ` Andrea Corallo
2024-05-29 18:03 ` Gerd Möllmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h6esewdp.fsf@gmail.com \
--to=eller.helmut@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=gerd.moellmann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.