Some fixes to GC order in Java.