diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-05-18 12:23:47 +0300 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-05-18 12:24:28 +0300 |
commit | 154a67f140a8397df77d82cdc80e13b291b8aedd (patch) | |
tree | b2f637ae3b7310aa1004b92d648a906f7f2c59a0 /mjit.c | |
parent | bbb84a16fab8e715a108c318e9e0e019339eb972 (diff) | |
download | ruby-154a67f140a8397df77d82cdc80e13b291b8aedd.tar.gz |
Rename rb_gc_new_location to rb_gc_location
The function will return new or existing locations depending on whether
or not the object actually moved, so give it a more appropriate name.
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -119,7 +119,7 @@ mjit_update_references(const rb_iseq_t *iseq) CRITICAL_SECTION_START(4, "mjit_update_references"); if (iseq->body->jit_unit) { - iseq->body->jit_unit->iseq = (rb_iseq_t *)rb_gc_new_location((VALUE)iseq->body->jit_unit->iseq); + iseq->body->jit_unit->iseq = (rb_iseq_t *)rb_gc_location((VALUE)iseq->body->jit_unit->iseq); // We need to invalidate JIT-ed code for the ISeq because it embeds pointer addresses. // To efficiently do that, we use the same thing as TracePoint and thus everything is cancelled for now. mjit_call_p = false; // TODO: instead of cancelling all, invalidate only this one and recompile it with some threshold. @@ -131,7 +131,7 @@ mjit_update_references(const rb_iseq_t *iseq) struct rb_mjit_unit *unit = NULL; list_for_each(&stale_units.head, unit, unode) { if (unit->iseq == iseq) { - unit->iseq = (rb_iseq_t *)rb_gc_new_location((VALUE)unit->iseq); + unit->iseq = (rb_iseq_t *)rb_gc_location((VALUE)unit->iseq); } } CRITICAL_SECTION_FINISH(4, "mjit_update_references"); |