Skip to content

Commit

Permalink
* method.c (rb_method_entry_t): body.proc should be marked.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Aug 26, 2009
1 parent ba7a870 commit 0c86e8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,8 @@ mark_method_entry_i(ID key, const rb_method_entry_t *me, st_data_t data)
}

static void
mark_m_tbl(rb_objspace_t *objspace, st_table *tbl, int lev) {
mark_m_tbl(rb_objspace_t *objspace, st_table *tbl, int lev)
{
struct mark_tbl_arg arg;
if (!tbl) return;
arg.objspace = objspace;
Expand Down
2 changes: 1 addition & 1 deletion method.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ typedef struct rb_method_entry_struct {
rb_iseq_t *iseq; /* should be mark */
rb_method_cfunc_t cfunc;
ID attr_id;
VALUE proc;
VALUE proc; /* should be mark */
enum method_optimized_type {
OPTIMIZED_METHOD_TYPE_SEND,
OPTIMIZED_METHOD_TYPE_CALL
Expand Down

0 comments on commit 0c86e8b

Please sign in to comment.