debugging SEGV on Solaris11s
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
915ca40f38
commit
0eddedbf5c
14
compile.c
14
compile.c
@ -9582,15 +9582,29 @@ ibf_load_iseq(const struct ibf_load *load, const rb_iseq_t *index_iseq)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rb_iseq_t *iseq = iseq_imemo_alloc();
|
rb_iseq_t *iseq = iseq_imemo_alloc();
|
||||||
|
#if IBF_ISEQ_DEBUG
|
||||||
|
fprintf(stderr, "ibf_load_iseq: new iseq=%p\n", iseq);
|
||||||
|
#endif
|
||||||
FL_SET(iseq, ISEQ_NOT_LOADED_YET);
|
FL_SET(iseq, ISEQ_NOT_LOADED_YET);
|
||||||
iseq->aux.loader.obj = load->loader_obj;
|
iseq->aux.loader.obj = load->loader_obj;
|
||||||
iseq->aux.loader.index = iseq_index;
|
iseq->aux.loader.index = iseq_index;
|
||||||
|
#if IBF_ISEQ_DEBUG
|
||||||
|
fprintf(stderr, "ibf_load_iseq: iseq=%p loader_obj=%p index=%d\n",
|
||||||
|
iseq, (void *)load->loader_obj, iseq_index);
|
||||||
|
#endif
|
||||||
rb_ary_store(load->iseq_list, iseq_index, (VALUE)iseq);
|
rb_ary_store(load->iseq_list, iseq_index, (VALUE)iseq);
|
||||||
|
|
||||||
#if !USE_LAZY_LOAD
|
#if !USE_LAZY_LOAD
|
||||||
|
#if IBF_ISEQ_DEBUG
|
||||||
|
fprintf(stderr, "ibf_load_iseq: loading iseq=%p\n", iseq);
|
||||||
|
#endif
|
||||||
ibf_load_iseq_complete(iseq);
|
ibf_load_iseq_complete(iseq);
|
||||||
#endif /* !USE_LAZY_LOAD */
|
#endif /* !USE_LAZY_LOAD */
|
||||||
|
|
||||||
|
#if IBF_ISEQ_DEBUG
|
||||||
|
fprintf(stderr, "ibf_load_iseq: iseq=%p loaded %p\n",
|
||||||
|
iseq, load->iseq);
|
||||||
|
#endif
|
||||||
if (load->iseq) {
|
if (load->iseq) {
|
||||||
iseq_add_mark_object(load->iseq, (VALUE)iseq);
|
iseq_add_mark_object(load->iseq, (VALUE)iseq);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user