aboutsummaryrefslogtreecommitdiffstats
path: root/transient_heap.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2019-05-18 12:23:47 +0300
committerAaron Patterson <tenderlove@ruby-lang.org>2019-05-18 12:24:28 +0300
commit154a67f140a8397df77d82cdc80e13b291b8aedd (patch)
treeb2f637ae3b7310aa1004b92d648a906f7f2c59a0 /transient_heap.c
parentbbb84a16fab8e715a108c318e9e0e019339eb972 (diff)
downloadruby-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 'transient_heap.c')
-rw-r--r--transient_heap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transient_heap.c b/transient_heap.c
index 81cd495c6d..b67469b91a 100644
--- a/transient_heap.c
+++ b/transient_heap.c
@@ -816,7 +816,7 @@ transient_heap_block_update_refs(struct transient_heap* theap, struct transient_
void *poisoned = __asan_region_is_poisoned((void *)header->obj, SIZEOF_VALUE);
unpoison_object(header->obj, false);
- header->obj = rb_gc_new_location(header->obj);
+ header->obj = rb_gc_location(header->obj);
if (poisoned) {
poison_object(header->obj);
@@ -848,7 +848,7 @@ rb_transient_heap_update_references(void)
for (i=0; i<theap->promoted_objects_index; i++) {
VALUE obj = theap->promoted_objects[i];
- theap->promoted_objects[i] = rb_gc_new_location(obj);
+ theap->promoted_objects[i] = rb_gc_location(obj);
}
}