[PATCH] openjdk/zero: only use FPU opcodes if FPU is available
Sebastian Andrzej Siewior
openjdk at ml.breakpoint.cc
Wed Jun 23 07:51:56 PDT 2010
* Andrew Haley | 2010-06-23 13:32:07 [+0100]:
>> Basically, if you just want to run stuff then it's ok to bypass
>> that piece of assembler, but if you want to certify the builds
>> for whatever reason then you will need to figure out some other
>> way to do a 64-bit atomic copy.
>
>Which is pretty easy:
>
>static void atomic_copy64(volatile void *src, volatile void *dst) {
> pthread_mutex_lock(&the_mutex);
> *dst = *src;
> pthread_mutex_unlock(&the_mutex);
>}
>
>... assuming that's the only place volatile doubles are ever touched.
I though about that. With this you need to grab the same mutex in every
read section.
>Andrew.
Sebastian
More information about the jdk6-dev
mailing list