diff options
author | Jean Boussier <byroot@ruby-lang.org> | 2023-02-15 15:18:01 +0100 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2023-02-16 08:14:44 +0100 |
commit | 1a4b4cd7f8b53fc52191c1ddcf3f624a5e687c24 (patch) | |
tree | 2143cb0a59d5f680d0c2c245b4698f51f75b952d /yjit/bindgen/src/main.rs | |
parent | 1df75d658674d511780e578d3a394e1a9bcee5be (diff) | |
download | ruby-1a4b4cd7f8b53fc52191c1ddcf3f624a5e687c24.tar.gz |
Move `attached_object` into `rb_classext_struct`
Given that signleton classes don't have an allocator,
we can re-use these bytes to store the attached object
in `rb_classext_struct` without making it larger.
Diffstat (limited to 'yjit/bindgen/src/main.rs')
-rw-r--r-- | yjit/bindgen/src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index a961c1290a..74280e4362 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -141,6 +141,7 @@ fn main() { .allowlist_function("rb_ary_tmp_new_from_values") // From include/ruby/internal/intern/class.h + .allowlist_function("rb_class_attached_object") .allowlist_function("rb_singleton_class") // From include/ruby/internal/core/rclass.h |