1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

vm.c (thread_alloc): remove needless volatile

If we needed a volatile there, every other alloc function would need it.
There is nothing special I can see about thread_alloc which would
justify it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2014-09-12 21:34:25 +00:00
parent 1972a3136c
commit 2e33fdfbca
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sat Sep 13 06:31:23 2014 Eric Wong <e@80x24.org>
* vm.c (thread_alloc): remove needless volatile
Sat Sep 13 06:13:55 2014 Eric Wong <e@80x24.org>
* proc.c (proc_free): remove, use RUBY_TYPED_DEFAULT_FREE

2
vm.c
View file

@ -2121,7 +2121,7 @@ rb_obj_is_thread(VALUE obj)
static VALUE
thread_alloc(VALUE klass)
{
VALUE volatile obj;
VALUE obj;
rb_thread_t *th;
obj = TypedData_Make_Struct(klass, rb_thread_t, &thread_data_type, th);