diff options
author | Jean Boussier <[email protected]> | 2025-04-27 08:05:43 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2025-04-27 11:59:28 +0200 |
commit | 3ec7bfff2e7ac4f6f69d26676edcfd2e73ea3b05 (patch) | |
tree | e5f836790fc027fb7d30bb6388f10ae4464b6e40 /vm.c | |
parent | 6874b289a199db74fac4126cbefe7cfac491cda0 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |