mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
thread.c: identity hash
* thread.c (rb_uninterruptible): use identity hash for masking. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c3bd57d18e
commit
2dffc6bba3
1 changed files with 1 additions and 1 deletions
2
thread.c
2
thread.c
|
@ -5275,7 +5275,7 @@ rb_reset_coverages(void)
|
|||
VALUE
|
||||
rb_uninterruptible(VALUE (*b_proc)(ANYARGS), VALUE data)
|
||||
{
|
||||
VALUE interrupt_mask = rb_hash_new();
|
||||
VALUE interrupt_mask = rb_ident_hash_new();
|
||||
rb_thread_t *cur_th = GET_THREAD();
|
||||
|
||||
rb_hash_aset(interrupt_mask, rb_cObject, sym_never);
|
||||
|
|
Loading…
Add table
Reference in a new issue