[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: “Too many root sets” when calling compile frequently
From: |
Maxime Devos |
Subject: |
Re: “Too many root sets” when calling compile frequently |
Date: |
Sat, 20 Aug 2022 15:10:53 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 |
On 20-08-2022 13:08, Jean Abou Samra wrote:
Thanks for your reply. I didn’t dig into the history yet, but I might do it
later. For now, I have a question. What is the actual purpose of the
GC_add_roots call? Is it just to give eternal protection to the objects pointed
to by pointers in the memory section? In that case, wouldn’t it also work to
create a bytevector from the root section and use scm_permanent_object on it?
Or is this a subtlety where Guile registers its ELF bytecode as if it were a
dynamic library (also ELF)?
My answer is 'Possibly' to all of that, I don't know the loader code at all.
Greetings,
Maxime.
OpenPGP_0x49E3EE22191725EE.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature