http://cr.openjdk.java.net/~roland/shenandoah-barrier-on-const/webrev.00/ This adds a command line option to keep barriers on const oops in the compiled code and should not get in the way of existing optimizations. Roland.