[PATCH] openjdk/zero: only use FPU opcodes if FPU is available (original) (raw)

Sebastian Andrzej Siewior openjdk at ml.breakpoint.cc
Wed Jun 23 07:51:56 PDT 2010


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 atomiccopy64(volatile void *src, volatile void *dst) { pthreadmutexlock(&themutex); *dst = *src; pthreadmutexunlock(&themutex); } ... 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