improved the compiler barrier example