Skip to content

Commit 51384f4

Browse files
Generate rb_zjit_hash_new_size binding with bindgen
1 parent ea2e8bb commit 51384f4

3 files changed

Lines changed: 2 additions & 1 deletion

File tree

zjit/bindgen/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ fn main() {
112112
.allowlist_function("rb_protect")
113113
.allowlist_function("rb_zjit_profile_disable")
114114
.allowlist_function("rb_zjit_insn_to_bare_insn")
115+
.allowlist_function("rb_zjit_hash_new_size")
115116

116117
// For crashing
117118
.allowlist_function("rb_bug")

zjit/src/cruby.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ unsafe extern "C" {
124124

125125
pub fn rb_zjit_offset_ractor_newobj_cache() -> usize;
126126

127-
pub fn rb_zjit_hash_new_size() -> usize;
128127
pub fn rb_zjit_offset_rhash_ifnone() -> usize;
129128

130129
// Floats within range will be encoded without creating objects in the heap.

zjit/src/cruby_bindings.inc.rs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)