emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

igc testing and bug reports -was- Re: Not protecting Lisp objects from G


From: Jeremy Bryant
Subject: igc testing and bug reports -was- Re: Not protecting Lisp objects from GC
Date: Fri, 31 Jan 2025 22:48:53 +0000

>>> I am a non-expert in GC.
>>> As such would you have any guidance on how to
>>> understand the benefits of the igc branch
>>
>> I recommend starting with admin/igc.org. I'm not a particularly good
>> explaining things, but I'd hope it's helpful anyway.
>>
>>> and the 'easiest' entry points into the code for study purposes?
>>
>> MPS is a library, so one has to understand its API first; igc.org has
>> links to the MPS documentation. The documentation includes a Guide that
>> I would start with.
>>
>> Once you've done that, read the rest of igc.org, and then see how igc.c
>> uses the API. I'd start here
>>
>> igc.c:
>>  5235 void
>>  5236 init_igc (void)
>>  5237 {
>>  5238   /* Returns previous handler.  */
>>  5239   (void) mps_lib_assert_fail_install (igc_assert_fail);
>>  5240   global_igc = make_igc ();
>>  5241   add_main_thread ();
>>  5242   set_state (IGC_STATE_USABLE_PARKED);
>>  5243 }
>>
>> This is called very early when Emacs starts. It sets up everything so
>> that the GC is usable. Follow the call tree and look up MPS API
>> functions being called in the MPS Reference.
>>
>> Then ask questions :-).
>
> Thanks for the detailed description and guide.  I will read up and try
> to ask questions.
>
> Furthermore this succinct summary and entry point may
> help guide others now, on the road to this large feature.

I find admin/igc.org very readable, and thanks to the instructions in
README.IGC, have compiled the branch in a straightforward manner (on GNU/Linux)

Questions;  There are two sets of instructions, with and without debug.
What is your recommendation with respect to the status of the branch:
Should it be compiled and run under gdb?
Or is it stable enough to run without the debug Can any bug reports be 
submitted in the usual way with M-x
report-emacs-bug?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]