summaryrefslogtreecommitdiff
path: root/ujit_iface.c
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2021-01-22 13:29:09 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:27 -0400
commitdea4db16c03b3befc14a0de9b51489d9382258a3 (patch)
treede602f107bff3e0a7a70bc2716c8009ca4e84932 /ujit_iface.c
parentd528cf4fd5551c323484c2ffb79b56af0c6f50c4 (diff)
Add support for multiple versions per block
Diffstat (limited to 'ujit_iface.c')
-rw-r--r--ujit_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ujit_iface.c b/ujit_iface.c
index ea7445e4ed..fac401a7b2 100644
--- a/ujit_iface.c
+++ b/ujit_iface.c
@@ -186,7 +186,7 @@ add_lookup_dependency_i(st_data_t *key, st_data_t *value, st_data_t data, int ex
void
assume_method_lookup_stable(const struct rb_callcache *cc, const rb_callable_method_entry_t *cme, block_t* block)
{
- assert (block != NULL);
+ RUBY_ASSERT(block != NULL);
st_update(method_lookup_dependency, (st_data_t)cme, add_lookup_dependency_i, (st_data_t)block);
st_update(method_lookup_dependency, (st_data_t)cc, add_lookup_dependency_i, (st_data_t)block);
// FIXME: This is a leak! When either the cme or the cc become invalid, the other also needs to go