title: Does G1 GC have a max size of region or max amount of region?
body: <p>when i studied G1 GC, I found this article: <a href="http://www.oracle.com/technetwork/articles/java/g1gc-1984535.html" rel="noreferrer">http://www.oracle.com/technetwork/articles/java/g1gc-1984535.html</a>. In that article, there is something says as follow:</p>
  
  <blockquote>
    <p>The G1 GC is a regionalized and generational garbage collector, which means that the Java object heap (heap) is divided into a number of equally sized regions. Upon startup, the Java Virtual Machine (JVM) sets the region size. The region sizes can vary from 1 MB to 32 MB depending on the heap size. The goal is to have no more than 2048 regions. </p>
  </blockquote>
  
  <p>Does that mean the max size of java heap memory that G1 GC can deal with is 2048 * 32M, and if the size exceeds it, what will happen?</p>