Skip to content

Instantly share code, notes, and snippets.

@chrisvest
Created December 1, 2014 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisvest/f8fd4f2c2f4877f7e78d to your computer and use it in GitHub Desktop.
Save chrisvest/f8fd4f2c2f4877f7e78d to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
MemoryHolder holder = new MemoryHolder();
System.out.println("holder.getInt() = " + holder.getInt());
reachabilityFence(holder);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment