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

* insns.def (throw), thread.c, yarvcore.h (throwed_errinfo): fixed

typo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-04-02 12:54:42 +00:00
parent 528e8517b8
commit 790999028d
5 changed files with 17 additions and 12 deletions

View file

@ -1,3 +1,8 @@
Mon Apr 2 21:55:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* insns.def (throw), thread.c, yarvcore.h (throwed_errinfo): fixed
typo.
Fri Mar 30 11:46:51 2007 NAKAMURA Usaku <usa@ruby-lang.org> Fri Mar 30 11:46:51 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (rb_w32_cmdvector): fixed buffer size. reported by * win32/win32.c (rb_w32_cmdvector): fixed buffer size. reported by

View file

@ -1472,7 +1472,7 @@ throw
pt = GET_LFP(); pt = GET_LFP();
} }
else { else {
rb_bug("isns(throw): unsupport thorw type"); rb_bug("isns(throw): unsupport throw type");
} }
} }
th->state = state; th->state = state;

View file

@ -240,7 +240,7 @@ terminate_i(st_data_t key, st_data_t val, rb_thread_t *main_thread)
if (th != main_thread) { if (th != main_thread) {
thread_debug("terminate_i: %p\n", th); thread_debug("terminate_i: %p\n", th);
rb_thread_interrupt(th); rb_thread_interrupt(th);
th->throwed_errinfo = eTerminateSignal; th->thrown_errinfo = eTerminateSignal;
th->status = THREAD_TO_KILL; th->status = THREAD_TO_KILL;
} }
else { else {
@ -690,9 +690,9 @@ rb_thread_execute_interrupts(rb_thread_t *th)
} }
/* exception from another thread */ /* exception from another thread */
if (th->throwed_errinfo) { if (th->thrown_errinfo) {
VALUE err = th->throwed_errinfo; VALUE err = th->thrown_errinfo;
th->throwed_errinfo = 0; th->thrown_errinfo = 0;
thread_debug("rb_thread_execute_interrupts: %ld\n", err); thread_debug("rb_thread_execute_interrupts: %ld\n", err);
if (err == eKillSignal) { if (err == eKillSignal) {
@ -745,7 +745,7 @@ rb_thread_raise(int argc, VALUE *argv, rb_thread_t *th)
exc = rb_make_exception(argc, argv); exc = rb_make_exception(argc, argv);
/* TODO: need synchronization if run threads in parallel */ /* TODO: need synchronization if run threads in parallel */
th->throwed_errinfo = exc; th->thrown_errinfo = exc;
rb_thread_ready(th); rb_thread_ready(th);
return Qnil; return Qnil;
} }
@ -865,7 +865,7 @@ rb_thread_kill(VALUE thread)
thread_debug("rb_thread_kill: %p (%p)\n", th, (void *)th->thread_id); thread_debug("rb_thread_kill: %p (%p)\n", th, (void *)th->thread_id);
rb_thread_interrupt(th); rb_thread_interrupt(th);
th->throwed_errinfo = eKillSignal; th->thrown_errinfo = eKillSignal;
th->status = THREAD_TO_KILL; th->status = THREAD_TO_KILL;
return thread; return thread;

View file

@ -1,15 +1,15 @@
#define RUBY_VERSION "1.9.0" #define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2007-03-30" #define RUBY_RELEASE_DATE "2007-04-02"
#define RUBY_VERSION_CODE 190 #define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20070330 #define RUBY_RELEASE_CODE 20070402
#define RUBY_PATCHLEVEL 0 #define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 0 #define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 3 #define RUBY_RELEASE_MONTH 4
#define RUBY_RELEASE_DAY 30 #define RUBY_RELEASE_DAY 2
RUBY_EXTERN const char ruby_version[]; RUBY_EXTERN const char ruby_version[];
RUBY_EXTERN const char ruby_release_date[]; RUBY_EXTERN const char ruby_release_date[];

View file

@ -422,7 +422,7 @@ struct rb_thread_struct
VALUE value; VALUE value;
VALUE errinfo; VALUE errinfo;
VALUE throwed_errinfo; VALUE thrown_errinfo;
int exec_signal; int exec_signal;
int interrupt_flag; int interrupt_flag;