I.
Java Concurrency
Java Concurrency, A(nother) Peek Under the Hood (Oracle’s video)
1. Memory barriers (at 18:00 above video)
II. JVM
1. Garbage collector
Ref [Link]
1.1 Garbage steps: Marking, Normal deletion (included: Deletion with Compacting –
reduce fragment)
Marking
Normal deletion
Step 2.1: Deletion with compacting
1.2 Generational Garbage Collection
Time to live an object in java are usually short (by statistic as bellow picture)
JVM Generations
When object is alive in long time, it will be moved to next generation. With older
generation, frequency scan these object will be less than younger generation