<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Poonam,<br>
<br>
Yes, the whole heap can grow at the end of a young GC in G1.<br>
<br>
Tony<br>
<br>
On 06/08/2011 05:14 AM, Poonam Bajaj wrote:
<blockquote cite="mid:4DEF3D87.6000100@oracle.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
Hi Tony,<br>
<br>
On 6/7/2011 11:40 PM, Tony Printezis wrote:
<blockquote cite="mid:4DEE6984.9020904@oracle.com" type="cite">Hi
all, <br>
<br>
Could I have a couple of reviews for this change? <br>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://cr.openjdk.java.net/%7Etonyp/7032531/webrev.0/">http://cr.openjdk.java.net/~tonyp/7032531/webrev.0/</a>
<br>
<br>
This enhances the G1 +PrintGCDetails output to include how much
space
there is in the eden and survivor regions before / after a GC.
Here's
an example of the output: <br>
<br>
[Eden: 18M->0B Survivors: 1024K->2048K Heap:
27M(105M)->12M(125M)] <br>
<br>
It shows that the eden had 18MB before the GC and it's empty
after it
(as expected!), the survivors were 1MB before the GC and grew to
2MB
after the GC, the used space in the heap fell from 27MB to 12MB,
and
finally the heap size grew from 105MB to 125MB. <br>
<br>
</blockquote>
The heap size ( grew from 105K to 125K) here means the total size
of
all the regions in G1 heap (including young regions) ?<br>
<br>
Thanks,<br>
Poonam<br>
<br>
<blockquote cite="mid:4DEE6984.9020904@oracle.com" type="cite">Note
that,
currently, the eden / survivor sizes that are reported are not
very accurate. They are currently calculated as region_num *
region_size. It'd be better if they were calculated as the used
byte
total in the eden and survivor regions. But this would require a
fair
amount of extra changes to do (I'd rather avoid iterating over
them to
calculate that). We'll do that change when we revamp the region
lists
that keep track of the eden / survivor regions (which is
currently
work-in-progress). <br>
<br>
Tony <br>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
Best regards, Poonam
<p><img src="cid:part1.06080702.06090106@oracle.com" alt="Sun,
an Oracle company" height="70" width="110" border="0"><br>
Sun, an Oracle Company<br>
<font color="#666666" face="Verdana, Arial, Helvetica,
sans-serif" size="2">Poonam Bajaj | Staff Engineer<br>
Phone: <a moz-do-not-send="true" href="tel:+66937451">+66937451</a>
| Mobile: <a moz-do-not-send="true" href="tel:+9844511366">+9844511366</a>
<br>
JVM Sustaining Engineering<br>
| Bangalore </font>
<br>
<a moz-do-not-send="true"
href="http://www.oracle.com/commitment" target="_blank"><img
src="cid:part2.07000707.07020002@oracle.com" alt="Green
Oracle" height="28" width="44" align="absmiddle"
border="0"></a>
<font color="#4b7d42" face="Verdana, Arial, Helvetica,
sans-serif" size="1">Oracle is committed to developing
practices and products that
help protect the environment</font>
<!-- This signature was generated by the MyDesktop Oracle Business Signature utility version 3.8.5 --></p>
</div>
</blockquote>
</body>
</html>