The G1 Garbage Collector

(dev.java)

21 points | by ejboy 3 days ago

3 comments

  • Sid_Lmao 3 days ago
    Easy-to-miss detail: before JDK 27, the JVM only picked G1 with 2+ CPUs and ~1.8 GB of memory; otherwise, it silently used SerialGC. So a lot of 1- CPU Kubernetes pods have been on serial all along. Worth checking with -XX:+PrintCommandLineFlags before upgrading, since GC behaviour will change.
    • citrin_ru 48 minutes ago
      Isn't the reason for this that on a single core SerialGC is better (lower CPU overhead at least)?
  • _verandaguy 43 minutes ago
    Tangential, but I really dislike that the `.java` gTLD was allowed to come about given it's also a reasonably popular file extension.

    The `.zip` gTLD set a really bad precedent.

    • lmz 17 minutes ago
      .zip? Not .com?