RFR: 8280001: Serial: Add documentation to heap memory layout

Thomas Schatzl tschatzl at openjdk.java.net
Fri Jan 14 12:49:27 UTC 2022


On Fri, 14 Jan 2022 08:26:04 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Comments-only change of adding some documentation.
> 
> Test: build

Changes requested by tschatzl (Reviewer).

src/hotspot/share/gc/serial/serialHeap.hpp line 55:

> 53: // |       eden      |  from  |   to   |        |      old      |                   |
> 54: // |                 |  (to)  | (from) |        |               |                   |
> 55: // +-----------------+--------+--------+--------+---------------+-------------------+

Unfortunately, the young gen contents are shown wrongly: from/to space are of fixed size and adjacent to the generation boundary.
There is no space between to-space and old gen.
Eden, from and to-space are committed separately within their space and never move.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7075



More information about the hotspot-gc-dev mailing list