Test case needed for cache analysis of invocation in if/else
Status: Inactive
Brought to you by:
vocaro
For method cache analysis, make sure you consider:
for (int i = 0; i < 10; i++)
{
if (i % 3 == 0)
{
methodB(x + 1);
}
else
{
methodB(x + 2);
}
x++;
}
Note that there are two method calls here, but they're both the same method. So, after the first call, methodB will be in the cache for the entire rest of the loop. A test case should be written for this.
See also bug #2446935