summaryrefslogtreecommitdiff
path: root/vm_core.h
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_core.h
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_core.h')
-rw-r--r--vm_core.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index db98cc01a6..a9bd47aaae 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -120,6 +120,7 @@ extern int ruby_assert_critical_section_entered;
#include "internal/basic_operators.h"
#include "internal/sanitizers.h"
#include "internal/serial.h"
+#include "internal/set_table.h"
#include "internal/vm.h"
#include "method.h"
#include "node.h"
@@ -791,7 +792,7 @@ typedef struct rb_vm_struct {
st_table *ci_table;
struct rb_id_table *negative_cme_table;
st_table *overloaded_cme_table; // cme -> overloaded_cme
- st_table *unused_block_warning_table;
+ set_table *unused_block_warning_table;
// This id table contains a mapping from ID to ICs. It does this with ID
// keys and nested st_tables as values. The nested tables have ICs as keys