* 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:
parent
09de2b0544
commit
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>
|
Mon Jun 10 15:36:00 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval_error.c (error_print): use checking functions instead of
|
* 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)
|
wmap_mark(void *ptr)
|
||||||
{
|
{
|
||||||
struct weakmap *w = 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);
|
rb_gc_mark(w->final);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user