Skip to content

Instantly share code, notes, and snippets.

@chriswhocodes
Created June 27, 2014 20:53
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 chriswhocodes/4ec1c786a41999c96f18 to your computer and use it in GitHub Desktop.
Save chriswhocodes/4ec1c786a41999c96f18 to your computer and use it in GitHub Desktop.
File used to test TieredCompilation output
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