From: matz@... (Yukihiro Matsumoto) Date: 2003-12-15T21:43:52+09:00 Subject: Re: --enable-pthread broken? Hi, In message "Re: --enable-pthread broken?" on 03/12/15, ts writes: | In rb_thread_restore_context() there is | | rb_trap_immediate = 0; /* inhibit interrupts from here */ | | because if ruby restore a thread which has rb_trap_immediate set, it can | receive VTALRM and try to re-schedule the thread where it's in | MEMCPY(tmp->stk_pos). | | Probably ruby must be put in critical phase at this step, to protect it if | it receive a signal in setcontext() I thought context switch would not happen during restore_context, because rb_trap_immediate is turned off. Am I wrong? matz.