mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8272975: ParallelGC: add documentation to heap memory layout
Co-authored-by: Thomas Schatzl <tschatzl@openjdk.org> Reviewed-by: tschatzl, kbarrett
This commit is contained in:
parent
b94fd32f08
commit
11c9fd8298
1 changed files with 20 additions and 0 deletions
|
@ -50,6 +50,26 @@ class PSAdaptiveSizePolicy;
|
||||||
class PSCardTable;
|
class PSCardTable;
|
||||||
class PSHeapSummary;
|
class PSHeapSummary;
|
||||||
|
|
||||||
|
// ParallelScavengeHeap is the implementation of CollectedHeap for Parallel GC.
|
||||||
|
//
|
||||||
|
// The heap is reserved up-front in a single contiguous block, split into two
|
||||||
|
// parts, the old and young generation. The old generation resides at lower
|
||||||
|
// addresses, the young generation at higher addresses. The boundary address
|
||||||
|
// between the generations is fixed. Within a generation, committed memory
|
||||||
|
// grows towards higher addresses.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// low high
|
||||||
|
//
|
||||||
|
// +-- generation boundary (fixed after startup)
|
||||||
|
// |
|
||||||
|
// |<- old gen (reserved) ->|<- young gen (reserved) ->|
|
||||||
|
// +---------------+--------+-----------------+--------+--------+--------+
|
||||||
|
// | old | | eden | from | to | |
|
||||||
|
// | | | | (to) | (from) | |
|
||||||
|
// +---------------+--------+-----------------+--------+--------+--------+
|
||||||
|
// |<- committed ->| |<- committed ->|
|
||||||
|
//
|
||||||
class ParallelScavengeHeap : public CollectedHeap {
|
class ParallelScavengeHeap : public CollectedHeap {
|
||||||
friend class VMStructs;
|
friend class VMStructs;
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue