<div dir="ltr">Hi all,<div><br></div><div>In a customer error file I found the following output:</div><div><br></div><div><div>Heap:</div><div> garbage-first heap   total 2592768K, used 1914672K [0x0000000679000000, 0x0000000679104f20, 0x00000007f0000000).</div></div><div><br></div><div>I wonder about the middle address value (0x0000000679104f20). I was assuming this to be the commit watermark. But the value seemed awfully low - just ~1MB beyond the start address of the reserved area. Given that about 4/5th of the heap is in-use, this seemed odd.</div><div><br></div><div>Looking at the code:</div><div><br></div><div><div>void G1CollectedHeap::print_on(outputStream* st) const {</div><div>....</div><div>  st->print(" [" PTR_FORMAT ", " PTR_FORMAT ", " PTR_FORMAT ")",<br></div><div>            p2i(_hrm.reserved().start()),</div><div>        >>    p2i(_hrm.reserved().start() + _hrm.length() + HeapRegion::GrainWords), <<</div><div>            p2i(_hrm.reserved().end()));</div></div><div>...</div><div>}</div><div><br></div><div>I am still confused. What is "_hrm.reserved().start() + _hrm.length() + HeapRegion::GrainWords"?  We add the number of comitted heap regions to the start address, plus the size of one heap region in words? Sorry, I am not a GC expert, could someone clarify what this address is? </div><div><br></div><div>Another question, while looking further into how g1 commits memory I looked at G1PageBasedVirtualSpace and it seems to me that there is no clear commit water mark because pages do not have to be committed sequentially, is that correct?</div><div><br></div><div>Thanks for clarifying!</div><div><br></div><div>Kind Regards, Thomas</div></div>