Skip to content

Instantly share code, notes, and snippets.

@tarrsalah
Created August 25, 2013 09:49
Show Gist options
  • Select an option

  • Save tarrsalah/6333038 to your computer and use it in GitHub Desktop.

Select an option

Save tarrsalah/6333038 to your computer and use it in GitHub Desktop.
Fuck the jvm.
public class SOExample {
private int state = 0;
public int getAndIncrement() {
return state++;
}
public int getAndIncrementAnother(SOExample dle) {
return dle.getAndIncrement() + dle.getAndIncrementAnother(this);
}
public static void main(String[] args) {
(new SOExample()).getAndIncrementAnother(new SOExample());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment