diff options
| author | Matt Valentine-House <matt@eightbitraptor.com> | 2024-07-12 12:03:26 +0100 |
|---|---|---|
| committer | Matt Valentine-House <matt@eightbitraptor.com> | 2024-07-12 14:43:33 +0100 |
| commit | 8418df72ec33b2824c8e6f57b06fae64bf35288e (patch) | |
| tree | 04b4fc49360c8fd59cc1ad030f9751b1e58d7797 | |
| parent | 3ccc6e0b6a1a50c5742265cd4066dd04211da5d4 (diff) | |
Avoid extra module linkage in gc/default.c
We don't need to use rb_str_to_cstr here, which means we don't need to
include string headers anymore.
| -rw-r--r-- | gc/default.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gc/default.c b/gc/default.c index 8614db982a..3e1491cbf5 100644 --- a/gc/default.c +++ b/gc/default.c @@ -12,7 +12,6 @@ # include <sys/user.h> #endif -#include "internal/string.h" #include "internal/hash.h" #include "ruby/ruby.h" @@ -8081,7 +8080,7 @@ static int gc_config_set_key(st_data_t key, st_data_t value, st_data_t data) { rb_objspace_t *objspace = (rb_objspace_t *)data; - if (!strcmp(rb_str_to_cstr(rb_sym2str(key)), "rgengc_allow_full_mark")) { + if (rb_sym2id(key) == rb_intern("rgengc_allow_full_mark")) { gc_rest(objspace); gc_config_full_mark_set(RBOOL(value)); } |
