If Pharo's gc algorithm is concurrent => maybe yes, otherwise surely no : if I'm not wrong gc starts inside VM when checking allocation spaces during a basicNew or alike. And the VM seems stuck, at that moment.
One can try to create an ephemeron and check it every 100-500 ms, refreshing it if it's still here (so it will stay in new space). But it shift the question to the definitive target group : the VM guys !!! Chers from Lombardy, Davide (PS : but creating the ephemeron could start an invisible gc !!!) On 09/09/2020 13:38, Stéphane Ducasse wrote:
Hi I would to be able to see when an incremental GC is happening. is there a way to know when a GC is happening? S. -------------------------------------------- Stéphane Ducasse http://stephane.ducasse.free.fr/ http://www.pharo.org 03 59 35 87 52 Assistant: Aurore Dalle FAX 03 59 57 78 50 TEL 03 59 35 86 16 S. Ducasse - Inria 40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park Plaza Villeneuve d'Ascq 59650 France
-- Ing. Davide Grandi email : davide.gra...@email.it mobile : +39 339 7468 778 linkedin : http://linkedin.com/in/davidegrandi