Search code examples
javanullpointerexceptiongarbage-collectionjava-6g1gc

Experience with JDK 1.6.x G1 ("Garbage First")


I'd like to know what are the experiences with G1 garbage collector in newest JDK? I see NullPointerException thrown in my program, although code didn't change and behave correctly in earlier JDKs.


Solution

  • I've been running jEdit using:

    -Xmx192M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC
    

    for the last couple of days on windows. Haven't experienced anything going wrong or misbehaving.

    I also tried running Intellij using the G1 GC, it didn't fair so well. It lasted a couple of hours before crashing in a big pile of mess, a bit optimistic maybe.