[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Java Problems



Oh. And to just simplify this test case a little more I bypass Java altogether and use this little C gem. It also triggers the problem.

#include <stdio.h>
float s_i = 0.75;
void test(float i) {
        if(i!=s_i) {
                printf("error\n");
        }
}
int main(char **args) {
        printf("Starting\n");
        long i=0;
        for (i = 0;i<100000000; i++) {
            test(s_i);
        }
        return 0;
    }

Starting
errorStarting
Starting
Starting
Starting
errorerrorerrorerrorStarting
errorStarting
errorStarting
Starting
Starting
Starting
errorerrorerrorStarting


Peter wrote:
Hi.

I don't have a 2.0.7 to test on at the moment.  I will try again when I do.

I got rid of the object allocation inside the loop. And I retested. I don't hit the problem with int's on the call stack. I do hit the problem with floats and doubles.

The problem is quite easily reproducible (for me). Is someone there with knowledge of register/stack handle able to take a look with gdb or which ever tool you use?

Regards, Peter
http://rimuhosting.com - Xen VPS Hosting


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.