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

* vm.c (rb_thread_mark), cont.c (cont_mark): revert r33369 and r33371

that may cause SEGV in certain environments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ktsj 2011-10-02 12:08:40 +00:00
parent 051aa44240
commit 3e6a5b27f0
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Oct 2 20:05:32 2011 Kazuki Tsujimoto <kazuki@callcc.net>
* vm.c (rb_thread_mark), cont.c (cont_mark): revert r33369 and r33371
that may cause SEGV in certain environments.
Sun Oct 02 12:14:06 2011 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
* test/psych/test_yamldbm.rb: add test case.

2
cont.c
View file

@ -138,7 +138,7 @@ cont_mark(void *ptr)
if (ptr) {
rb_context_t *cont = ptr;
rb_gc_mark(cont->value);
rb_gc_mark(cont->saved_thread.self);
rb_thread_mark(&cont->saved_thread);
if (cont->vm_stack) {
#ifdef CAPTURE_JUST_VALID_VM_STACK