Hi Aliaksei,

In VW, scavenges are done automatically by the VM, but all heavier-weight GC is controlled by the image, through a MemoryPolicy object. In the GemStone client for VW we provide a memory policy that discourages GC during times when our mapping dictionaries are strong, deferring it to just after we make the dictionaries weak so the GC can actually collect things that are mapped but no longer used.

It sounds like you'd like something very much like this, to tend to defer GC to a good point in the rendering cycle. And "tend to" is important -- when space is getting *really* low, it's a good idea to go ahead and do the GC regardless of whether it's a "good" time.

Regards,
-Martin

On 9/10/20 1:41 AM, Aliaksei Syrel wrote:
Hi

I wish there was a way to control *when* full GC is allowed to happen. For example, I would prefer GC to occur while the UI rendering loop is paused and not in the middle of the frame resulting in sometimes sluggish animations in the case of large images.

Thank you

On Wed, 9 Sep 2020 at 14:39, Stéphane Ducasse <stephane.duca...@inria.fr <mailto:stephane.duca...@inria.fr>> 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
    <https://www.google.com/maps/search/40,+avenue+Halley?entry=gmail&source=g>,

    Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
    Villeneuve d'Ascq 59650
    France







--
Cheers,
Alex

Reply via email to