Tagged articles
2 articles
Page 1 of 1
Java Backend Technology
Java Backend Technology
Mar 18, 2018 · Backend Development

Why Does the JVM Use Two Survivor Spaces? Uncover the Memory Management Secrets

This article explains the purpose of Survivor spaces in the JVM young generation, why a single Survivor area is insufficient, how having two Survivor spaces prevents memory fragmentation, and the copy algorithm that keeps one space empty while the other holds contiguous live objects.

Backend DevelopmentGarbage CollectionJava memory management
0 likes · 7 min read
Why Does the JVM Use Two Survivor Spaces? Uncover the Memory Management Secrets