[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#71774: 31.0.50; Hash table weakness broken?
From: |
martin rudalics |
Subject: |
bug#71774: 31.0.50; Hash table weakness broken? |
Date: |
Wed, 26 Jun 2024 11:08:27 +0200 |
User-agent: |
Mozilla Thunderbird |
>> Which "values" would you set to nil?
>
> The global variable "values", which the REPL uses to store evaluated values.
>
>> What precisely did you do?
>
> Here's my *scratch* buffer in emacs -Q:
>
>
> (defvar table (make-hash-table :weakness t))
>
> (puthash t (split-window) table)
>
> (delete-other-windows)
>
> (garbage-collect)
>
> (gethash t table)
>
> (setq values nil)
>
> (garbage-collect)
>
> (gethash t table)
>
>
> What I did is go through this buffer line by line, using C-x C-e after each
line. The first gethash produces the window, the second returns nil.
You're right. So here the scenario
(defvar table (make-hash-table :weakness t))
(progn
(puthash t (split-window) table)
(delete-other-windows))
(garbage-collect)
(gethash t table)
gets me nil too. So to make such tests work one has to tinker with
that obsolete variable 'values'. Worrisome.
Closing this bug and many thanks, martin
- bug#71774: 31.0.50; Hash table weakness broken?, martin rudalics, 2024/06/25
- bug#71774: 31.0.50; Hash table weakness broken?, Pip Cet, 2024/06/26
- bug#71774: 31.0.50; Hash table weakness broken?, martin rudalics, 2024/06/26
- bug#71774: 31.0.50; Hash table weakness broken?, Pip Cet, 2024/06/27
- bug#71774: 31.0.50; Hash table weakness broken?,
martin rudalics <=
- bug#71774: 31.0.50; Hash table weakness broken?, Pip Cet, 2024/06/27
- bug#71774: 31.0.50; Hash table weakness broken?, Stefan Monnier, 2024/06/26
- bug#71774: 31.0.50; Hash table weakness broken?, martin rudalics, 2024/06/26
- bug#71774: 31.0.50; Hash table weakness broken?, Stefan Monnier, 2024/06/26
- bug#71774: 31.0.50; Hash table weakness broken?, martin rudalics, 2024/06/27
- bug#71774: 31.0.50; Hash table weakness broken?, Stefan Monnier, 2024/06/27
- bug#71774: 31.0.50; Hash table weakness broken?, Eli Zaretskii, 2024/06/28
- bug#71774: 31.0.50; Hash table weakness broken?, Stefan Kangas, 2024/06/28
- bug#71774: 31.0.50; Hash table weakness broken?, Stefan Monnier, 2024/06/28
- bug#71774: 31.0.50; Hash table weakness broken?, Pip Cet, 2024/06/27