Created
June 27, 2014 20:53
-
-
Save chriswhocodes/4ec1c786a41999c96f18 to your computer and use it in GitHub Desktop.
File used to test TieredCompilation output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SandboxTest | |
{ | |
public int a(int x) | |
{ | |
return 1 + b(x); | |
} | |
public int b(int x) | |
{ | |
return 1 + c(x); | |
} | |
public int c(int x) | |
{ | |
return 1 + x; | |
} | |
public static void main(String[] args) | |
{ | |
SandboxTest test = new SandboxTest(); | |
int sum = 0; | |
for (int i = 0 ; i < 1_000_000; i++) | |
{ | |
sum = test.a(sum); | |
} | |
System.out.println("Sum:" + sum); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment