From 154a67f140a8397df77d82cdc80e13b291b8aedd Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sat, 18 May 2019 12:23:47 +0300 Subject: 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. --- transient_heap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'transient_heap.c') 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; ipromoted_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); } } -- cgit v1.2.1