Issue #4723 has been updated by Motohiro KOSAKI.


deadlock check????????????????議????URL???貼??????

http://markmail.org/message/xxlb4hnai54etixu#query:+page:1+mid:4ekc6xwdubrjno5r+state:results

----------------------------------------
Bug #4723: check_deadlock_i ???? transition_for_lock???????? thread unsafe
http://redmine.ruby-lang.org/issues/4723

Author: Motohiro KOSAKI
Status: Assigned
Priority: Normal
Assignee: Motohiro KOSAKI
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2011-05-13 trunk 31548) [x86_64-linux]


kosaki????????????????????????????????

> # ???????transition_for_lock ??? volatile ????????????????????????????

??????????????????????????????????????????????????????????????????????????????
?????????????????????????????volatile??????????????????????????????????
????????UP(????????CPU???????????????????????????????????????????????
???????????????????????仮?????????????????

????????????????transition_for_lock?????????????????????????????????????????
??????????????設?????????????

???lock_func()??????????????transition_for_lock?????????????????????????????lock_func????
  GVL??????????????????????????????????mutex->th ??? RUBY_VM_INTERRUPTED(th) ??????????????
  check_deadlock_i()???????????????????????????????
?????????????? GVL???mutex->lock?????????????????????????????????????????????????????
  ???張????????????????????????????調???????????????????????????????????????????????
??????????????????GVL???mutex->lock???両???????????????????????????????????????vm->sleeper
  ????????????????????????????????vm->sleeper?????????????????????????mutex->cond_waiting
  ?????????????????????????????????? check_deadlock_i() ??????????????????????

???????????????


-- 
http://redmine.ruby-lang.org