[Sablevm-developer] java.lang.Thread.yield()
Brought to you by:
egagnon
From: Chris P. <chr...@ma...> - 2003-02-20 01:36:52
|
Hi Etienne, For 1.0.6, you might want to replace sched_yield() with if (sched_yield() != 0) _svmf_error_InternalError (env); in java_lang_Thread.c I don't know what JNI_OK is defined to be (I couldn't find it with grep), but if it's zero then that's: if (sched_yield() != JNI_OK) _svmf_error_InternalError (env); Now my multithreaded programs run sometimes (they still segfault randomly). Chris P.S. David and I were wondering if you were going to make a development branch of SableVM that it's safe to hack away on (probably saves you the pain of having to apply all these patches). |