diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-10-17 09:27:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 09:27:59 -0700 |
commit | e7c71c6c9271b0c29f210769159090e17128e740 (patch) | |
tree | 536ec0057e05111955abe0a9cb38389af6c50d08 /yjit.c | |
parent | 07a93b1e378bf2ea356b0561e5e89e60d30fc684 (diff) | |
download | ruby-e7c71c6c9271b0c29f210769159090e17128e740.tar.gz |
Make mjit_cont sharable with YJIT (#6556)
* Make mjit_cont sharable with YJIT
* Update dependencies
* Update YJIT binding
Diffstat (limited to 'yjit.c')
-rw-r--r-- | yjit.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -894,13 +894,11 @@ rb_assert_cme_handle(VALUE handle) RUBY_ASSERT_ALWAYS(IMEMO_TYPE_P(handle, imemo_ment)); } -typedef void (*iseq_callback)(const rb_iseq_t *); - // Heap-walking callback for rb_yjit_for_each_iseq(). static int for_each_iseq_i(void *vstart, void *vend, size_t stride, void *data) { - const iseq_callback callback = (iseq_callback)data; + const rb_iseq_callback callback = (rb_iseq_callback)data; VALUE v = (VALUE)vstart; for (; v != (VALUE)vend; v += stride) { void *ptr = asan_poisoned_object_p(v); @@ -919,7 +917,7 @@ for_each_iseq_i(void *vstart, void *vend, size_t stride, void *data) // Iterate through the whole GC heap and invoke a callback for each iseq. // Used for global code invalidation. void -rb_yjit_for_each_iseq(iseq_callback callback) +rb_yjit_for_each_iseq(rb_iseq_callback callback) { rb_objspace_each_objects(for_each_iseq_i, (void *)callback); } |