summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-04-27 08:05:43 +0200
committerJean Boussier <[email protected]>2025-04-27 11:59:28 +0200
commit3ec7bfff2e7ac4f6f69d26676edcfd2e73ea3b05 (patch)
treee5f836790fc027fb7d30bb6388f10ae4464b6e40 /vm.c
parent6874b289a199db74fac4126cbefe7cfac491cda0 (diff)
Use a `set_table` for `rb_vm_struct.unused_block_warning_table`
Now that we have a hash-set implementation we can use that instead of a hash-table with a static value.
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index 1ad3565a63..b5836ebab1 100644
--- a/vm.c
+++ b/vm.c
@@ -3131,7 +3131,7 @@ ruby_vm_destruct(rb_vm_t *vm)
rb_vm_postponed_job_free();
rb_id_table_free(vm->constant_cache);
- st_free_table(vm->unused_block_warning_table);
+ set_free_table(vm->unused_block_warning_table);
xfree(th->nt);
th->nt = NULL;
@@ -4306,7 +4306,7 @@ Init_BareVM(void)
vm->negative_cme_table = rb_id_table_create(16);
vm->overloaded_cme_table = st_init_numtable();
vm->constant_cache = rb_id_table_create(0);
- vm->unused_block_warning_table = st_init_numtable();
+ vm->unused_block_warning_table = set_init_numtable();
// setup main thread
th->nt = ZALLOC(struct rb_native_thread);