Skip to content

Commit 11c9fd8

Browse files
albertnetymkThomas Schatzl
andcommitted
8272975: ParallelGC: add documentation to heap memory layout
Co-authored-by: Thomas Schatzl <tschatzl@openjdk.org> Reviewed-by: tschatzl, kbarrett
1 parent b94fd32 commit 11c9fd8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/hotspot/share/gc/parallel/parallelScavengeHeap.hpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,26 @@ class PSAdaptiveSizePolicy;
5050
class PSCardTable;
5151
class PSHeapSummary;
5252

53+
// ParallelScavengeHeap is the implementation of CollectedHeap for Parallel GC.
54+
//
55+
// The heap is reserved up-front in a single contiguous block, split into two
56+
// parts, the old and young generation. The old generation resides at lower
57+
// addresses, the young generation at higher addresses. The boundary address
58+
// between the generations is fixed. Within a generation, committed memory
59+
// grows towards higher addresses.
60+
//
61+
//
62+
// low high
63+
//
64+
// +-- generation boundary (fixed after startup)
65+
// |
66+
// |<- old gen (reserved) ->|<- young gen (reserved) ->|
67+
// +---------------+--------+-----------------+--------+--------+--------+
68+
// | old | | eden | from | to | |
69+
// | | | | (to) | (from) | |
70+
// +---------------+--------+-----------------+--------+--------+--------+
71+
// |<- committed ->| |<- committed ->|
72+
//
5373
class ParallelScavengeHeap : public CollectedHeap {
5474
friend class VMStructs;
5575
private:

0 commit comments

Comments
 (0)