Skip to content

Commit

Permalink
merges r24148 from trunk into ruby_1_9_1.
Browse files Browse the repository at this point in the history
--
* id.c (Init_id), vm.c (vm_exec): @#__ThrowState__ is no longer
  used.  [ruby-dev:38760]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
yugui committed Jul 17, 2009
1 parent 70a97f9 commit 38687be
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Thu Jul 16 18:28:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>

* id.c (Init_id), vm.c (vm_exec): @#__ThrowState__ is no longer
used. [ruby-dev:38760]

Thu Jul 16 08:56:32 2009 Koichi Sasada <ko1@atdot.net>

* dir.c (push_glob): re-fix GC problem.
Expand Down
1 change: 0 additions & 1 deletion eval.c
Expand Up @@ -1065,7 +1065,6 @@ Init_eval(void)

exception_error = rb_exc_new3(rb_eFatal,
rb_obj_freeze(rb_str_new2("exception reentered")));
rb_ivar_set(exception_error, idThrowState, INT2FIX(TAG_FATAL));
OBJ_TAINT(exception_error);
OBJ_FREEZE(exception_error);
}
19 changes: 19 additions & 0 deletions test/ruby/test_exception.rb
Expand Up @@ -223,4 +223,23 @@ def test_errat
end
INPUT
end

def test_safe4
cmd = proc{raise SystemExit}
safe0_p = proc{|*args| args}

test_proc = proc {
$SAFE = 4
begin
cmd.call
rescue SystemExit => e
safe0_p["SystemExit: #{e.inspect}"]
raise e
rescue Exception => e
safe0_p["Exception (NOT SystemExit): #{e.inspect}"]
raise e
end
}
assert_raise(SystemExit, '[ruby-dev:38760]') {test_proc.call}
end
end
2 changes: 1 addition & 1 deletion version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "1.9.1"
#define RUBY_RELEASE_DATE "2009-07-16"
#define RUBY_PATCHLEVEL 241
#define RUBY_PATCHLEVEL 242
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1
Expand Down
5 changes: 0 additions & 5 deletions vm.c
Expand Up @@ -1093,11 +1093,6 @@ vm_exec(rb_thread_t *th)

err = th->errinfo;

if (state == TAG_RAISE) {
if (OBJ_FROZEN(err)) rb_exc_raise(err);
rb_ivar_set(err, idThrowState, INT2FIX(state));
}

exception_handler:
cont_pc = cont_sp = catch_iseqval = 0;

Expand Down

0 comments on commit 38687be

Please sign in to comment.