Skip to main content

2 posts tagged with "gc"

View all tags

How the Java G1 Garbage Collector Works

· 3 min read
Apache Wangye
Software developer and technical writer

Garbage-First (G1) is a server-oriented Java garbage collector designed to balance throughput with predictable pause times. Instead of treating the heap as a few fixed contiguous generations, G1 divides it into equal-sized regions and assigns roles such as Eden, Survivor, and Old dynamically.

Java Garbage Collection Fundamentals

· One min read
Apache Wangye
Software developer and technical writer

Java garbage collection reclaims heap objects that are no longer reachable from a set of GC roots. Roots include active thread stacks, static fields, JNI references, and JVM-internal structures.

Total views -- · Visitors --