JIT bug?
Christian Thalinger
Christian.Thalinger at Sun.COM
Fri May 28 02:08:34 PDT 2010
[Moving this to hotspot-compiler-dev.]
On Thu, 2010-05-20 at 12:47 -0400, Christos Zoulas wrote:
> A friend of mine Andrew Neitsch sent this to me:
>
> christos
>
> public class Mainiac {
>
> public static void main(String[] args)
> throws Exception
> {
> int limit = Integer.MAX_VALUE;
>
> System.out.println("limit is " + limit);
> int i = 0;
> while (i++ < limit) {
> System.err.format("i = %d < limit: %b\n", i, i < limit);
> }
> System.err.println("i = " + i);
> System.err.println("limit = " + limit);
> }
> }
There is very little information but I guess this is with C2. This is a
known bug:
5091921: Sign flip issues in loop optimizer
-- Christian
More information about the hotspot-compiler-dev
mailing list