mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* gc.c (define_final): should not disclose NODE* to Ruby world.
[ruby-dev:23957] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a32c01d85a
commit
ca14017bb6
10 changed files with 37 additions and 20 deletions
3
eval.c
3
eval.c
|
@ -10971,10 +10971,13 @@ rb_thread_sleep(sec)
|
|||
void
|
||||
rb_thread_sleep_forever()
|
||||
{
|
||||
int thr_critical = rb_thread_critical;
|
||||
if (curr_thread == curr_thread->next ||
|
||||
curr_thread->status == THREAD_TO_KILL) {
|
||||
rb_thread_critical = Qtrue;
|
||||
TRAP_BEG;
|
||||
pause();
|
||||
rb_thread_critical = thr_critical;
|
||||
TRAP_END;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue