mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
mjit.c: add timeout for --jit-wait
Sometimes test hangs in `mjit_get_iseq_func` like this: http://ci.rvm.jp/results/trunk-test@ruby-sky3/659391 It seems that a process waiting in `mjit_get_iseq_func` does no longer have MJIT worker thread. We don't wait for JIT finish forever. So I added timeout for the case. I'm not sure why there was no MJIT worker thread in ruby-sky3 test process though. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6cd5db8904
commit
c91c62b674
2 changed files with 16 additions and 2 deletions
2
mjit.h
2
mjit.h
|
@ -56,7 +56,7 @@ extern struct mjit_options mjit_opts;
|
|||
extern int mjit_init_p;
|
||||
|
||||
extern void mjit_add_iseq_to_process(const rb_iseq_t *iseq);
|
||||
extern mjit_func_t mjit_get_iseq_func(const struct rb_iseq_constant_body *body);
|
||||
extern mjit_func_t mjit_get_iseq_func(struct rb_iseq_constant_body *body);
|
||||
RUBY_SYMBOL_EXPORT_END
|
||||
|
||||
extern int mjit_compile(FILE *f, const struct rb_iseq_constant_body *body, const char *funcname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue