[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-hotspot-gc-dev
Subject: Re: Calling Runtime.gc twice
From: David Sinclair <dsinclair () chariotsolutions ! com>
Date: 2017-04-01 0:11:32
Message-ID: CAGtiFWVA53rVSHa_894t5ko0JYxvw378E6xgD5Gb_s5ieAg_pQ () mail ! gmail ! com
[Download RAW message or body]
Ah, didn't think of that. I'll take a couple of heap dumps to try and
confirm that.
Thanks Kirk
On Friday, March 31, 2017, Kirk Pepperdine <kirk@kodewerk.com> wrote:
> Most likely the second GC is reclaiming Reference types identified during
> the first collection. Finalization is a likely candidate as it take one
> collection to get it into the reference queue, the queue is then process
> and the finalized object can finally be reclaimed.
>
> Kind regards,
> Kirk Pepperdine
>
> > On Mar 31, 2017, at 8:53 PM, David Sinclair <dsinclair@chariotsolutions.
> com> wrote:
> >
> > Hi all,
> >
> > I was hoping for an explanation of why calling Runtime.gc() twice shows
> a significant improvement in memory reclaimed as opposed to calling it once.
> >
> > Thanks
> >
> > dave
>
>
[Attachment #3 (text/html)]
<div dir="ltr">Ah, didn't think of that. I'll take a couple of heap dumps to \
try and confirm that.<div><br></div><div>Thanks Kirk<br><br>On Friday, March 31, \
2017, Kirk Pepperdine <<a href="mailto:kirk@kodewerk.com" \
target="_blank">kirk@kodewerk.com</a>> wrote:<br><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Most likely the \
second GC is reclaiming Reference types identified during the first collection. \
Finalization is a likely candidate as it take one collection to get it into the \
reference queue, the queue is then process and the finalized object can finally be \
reclaimed.<br> <br>
Kind regards,<br>
Kirk Pepperdine<br>
<br>
> On Mar 31, 2017, at 8:53 PM, David Sinclair \
<<a>dsinclair@chariotsolutions.<wbr>com</a>> wrote:<br> ><br>
> Hi all,<br>
><br>
> I was hoping for an explanation of why calling Runtime.gc() twice shows a \
significant improvement in memory reclaimed as opposed to calling it once.<br> \
><br> > Thanks<br>
><br>
> dave<br>
<br>
</blockquote>
</div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic