summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--KNOWNBUGS.rb6
-rw-r--r--bootstraptest/test_thread.rb6
-rw-r--r--process.c13
-rw-r--r--vm.c3
-rw-r--r--vm_core.h2
6 files changed, 23 insertions, 15 deletions
@@ -1,3 +1,11 @@
Thu Jul 10 12:09:21 2008 Nobuyoshi Nakada <[email protected]>
* thread.c (rb_thread_wait_for): wait until timed out only when
@@ -2,9 +2,3 @@
# This test file concludes tests which point out known bugs.
# So all tests will cause failure.
#
-
-assert_equal 'ok', %q{
- t = Thread.new { system("false") }
- t.join
- $? ? :ng : :ok
-}
@@ -355,3 +355,9 @@ assert_equal 'ok', %q{
sleep 1; m.lock
:ok
}
@@ -218,23 +218,22 @@ static VALUE rb_cProcessStatus;
VALUE
rb_last_status_get(void)
{
- return GET_VM()->last_status;
}
void
rb_last_status_set(int status, rb_pid_t pid)
{
- rb_vm_t *vm = GET_VM();
- vm->last_status = rb_obj_alloc(rb_cProcessStatus);
- rb_iv_set(vm->last_status, "status", INT2FIX(status));
- rb_iv_set(vm->last_status, "pid", PIDT2NUM(pid));
}
static void
rb_last_status_clear(void)
{
- rb_vm_t *vm = GET_VM();
- vm->last_status = Qnil;
}
/*
@@ -1391,7 +1391,6 @@ rb_vm_mark(void *ptr)
}
RUBY_MARK_UNLESS_NULL(vm->thgroup_default);
RUBY_MARK_UNLESS_NULL(vm->mark_object_ary);
- RUBY_MARK_UNLESS_NULL(vm->last_status);
RUBY_MARK_UNLESS_NULL(vm->load_path);
RUBY_MARK_UNLESS_NULL(vm->loaded_features);
RUBY_MARK_UNLESS_NULL(vm->top_self);
@@ -1547,6 +1546,7 @@ rb_thread_mark(void *ptr)
RUBY_MARK_UNLESS_NULL(th->fiber);
RUBY_MARK_UNLESS_NULL(th->root_fiber);
RUBY_MARK_UNLESS_NULL(th->stat_insn_usage);
RUBY_MARK_UNLESS_NULL(th->locking_mutex);
@@ -1595,6 +1595,7 @@ th_init2(rb_thread_t *th, VALUE self)
th->status = THREAD_RUNNABLE;
th->errinfo = Qnil;
#if USE_VALUE_CACHE
th->value_cache_ptr = &th->value_cache[0];
@@ -305,7 +305,6 @@ struct rb_vm_struct
st_table *living_threads;
VALUE thgroup_default;
- VALUE last_status; /* $? */
int running;
int thread_abort_on_exception;
@@ -408,6 +407,7 @@ struct rb_thread_struct
rb_control_frame_t *cfp;
int safe_level;
int raised_flag;
/* passing state */
int state;