зеркало из https://github.com/github/ruby.git
* gc.c (wmap_mark): check allocation of `w->obj2wmap'.
(no-allocation `w->obj2wmap' will be NULL pointer reference) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
09de2b0544
Коммит
dd96561f76
|
@ -1,3 +1,8 @@
|
|||
Mon Jun 10 16:05:59 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (wmap_mark): check allocation of `w->obj2wmap'.
|
||||
(no-allocation `w->obj2wmap' will be NULL pointer reference)
|
||||
|
||||
Mon Jun 10 15:36:00 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval_error.c (error_print): use checking functions instead of
|
||||
|
|
2
gc.c
2
gc.c
|
@ -4613,7 +4613,7 @@ static void
|
|||
wmap_mark(void *ptr)
|
||||
{
|
||||
struct weakmap *w = ptr;
|
||||
st_foreach(w->obj2wmap, wmap_mark_map, (st_data_t)&rb_objspace);
|
||||
if (w->obj2wmap) st_foreach(w->obj2wmap, wmap_mark_map, (st_data_t)&rb_objspace);
|
||||
rb_gc_mark(w->final);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче