ZGC 2D Demo

LEGEND

Live Object (일반 객체)
Root Object (GC 루트)
Marked (생존 확인됨)
Garbage (수거 대상)
Relocated (이동됨)

Z-PAGES (Regions)

🟦 Small: 2MB (작은 객체)
🟪 Medium: 32MB (중간 객체)
🟧 Large: N x 2MB (단일 객체)
Phase 0: 초기화
ZGC 메모리 구조(Z-Pages)를 초기화하고 객체를 할당합니다.
Large Page는 단일 객체만 저장하므로, Compaction 대상은 보통 Medium/Small 페이지로 이동합니다.

Memory Object

Address: 0x0000
Size: 24 bytes
Region: ZPage-1
Type: Small
State: Allocated
Refs: None