Skip to content

Commit

Permalink
Rename iseq_mark_and_update to iseq_mark_and_move
Browse files Browse the repository at this point in the history
The new name is more consistent.
  • Loading branch information
peterzhu2118 committed Feb 8, 2023
1 parent 6aa1961 commit 861d70e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion compile.c
Expand Up @@ -10736,7 +10736,7 @@ iseq_build_kw(rb_iseq_t *iseq, VALUE params, VALUE keywords)
}

void
rb_iseq_mark_and_update_insn_storage(struct iseq_compile_data_storage *storage)
rb_iseq_mark_and_move_insn_storage(struct iseq_compile_data_storage *storage)
{
INSN *iobj = 0;
size_t size = sizeof(INSN);
Expand Down
6 changes: 3 additions & 3 deletions gc.c
Expand Up @@ -1211,7 +1211,7 @@ VALUE rb_mGC;
int ruby_disable_gc = 0;
int ruby_enable_autocompact = 0;

void rb_iseq_mark_and_update(rb_iseq_t *iseq, bool referece_updating);
void rb_iseq_mark_and_move(rb_iseq_t *iseq, bool referece_updating);
void rb_iseq_free(const rb_iseq_t *iseq);
size_t rb_iseq_memsize(const rb_iseq_t *iseq);
void rb_vm_update_references(void *ptr);
Expand Down Expand Up @@ -7188,7 +7188,7 @@ gc_mark_imemo(rb_objspace_t *objspace, VALUE obj)
mark_method_entry(objspace, &RANY(obj)->as.imemo.ment);
return;
case imemo_iseq:
rb_iseq_mark_and_update((rb_iseq_t *)obj, false);
rb_iseq_mark_and_move((rb_iseq_t *)obj, false);
return;
case imemo_tmpbuf:
{
Expand Down Expand Up @@ -10345,7 +10345,7 @@ gc_ref_update_imemo(rb_objspace_t *objspace, VALUE obj)
gc_ref_update_method_entry(objspace, &RANY(obj)->as.imemo.ment);
break;
case imemo_iseq:
rb_iseq_mark_and_update((rb_iseq_t *)obj, true);
rb_iseq_mark_and_move((rb_iseq_t *)obj, true);
break;
case imemo_ast:
rb_ast_update_references((rb_ast_t *)obj);
Expand Down
4 changes: 2 additions & 2 deletions iseq.c
Expand Up @@ -283,7 +283,7 @@ rb_iseq_mark_and_move_each_value(const rb_iseq_t *iseq, VALUE *original_iseq)
}

void
rb_iseq_mark_and_update(rb_iseq_t *iseq, bool reference_updating)
rb_iseq_mark_and_move(rb_iseq_t *iseq, bool reference_updating)
{
RUBY_MARK_ENTER("iseq");

Expand Down Expand Up @@ -379,7 +379,7 @@ rb_iseq_mark_and_update(rb_iseq_t *iseq, bool reference_updating)
else if (FL_TEST_RAW((VALUE)iseq, ISEQ_USE_COMPILE_DATA)) {
const struct iseq_compile_data *const compile_data = ISEQ_COMPILE_DATA(iseq);

rb_iseq_mark_and_update_insn_storage(compile_data->insn.storage_head);
rb_iseq_mark_and_move_insn_storage(compile_data->insn.storage_head);

rb_gc_mark_and_move((VALUE *)&compile_data->err_info);
rb_gc_mark_and_move((VALUE *)&compile_data->catch_table_ary);
Expand Down
2 changes: 1 addition & 1 deletion iseq.h
Expand Up @@ -186,7 +186,7 @@ VALUE *rb_iseq_original_iseq(const rb_iseq_t *iseq);
void rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE misc,
VALUE locals, VALUE args,
VALUE exception, VALUE body);
void rb_iseq_mark_and_update_insn_storage(struct iseq_compile_data_storage *arena);
void rb_iseq_mark_and_move_insn_storage(struct iseq_compile_data_storage *arena);

VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt);
VALUE rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc);
Expand Down

0 comments on commit 861d70e

Please sign in to comment.