Re: is there a way to know when a GC is happening?
Posted by
Martin McClure-2 on
Sep 11, 2020; 3:25am
URL: https://forum.world.st/is-there-a-way-to-know-when-a-GC-is-happening-tp5121531p5121624.html
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
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
03 59 35 87 52
Assistant: Aurore Dalle
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
Parc Scientifique de la Haute Borne,
Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France
--