diff options
author | Aaron Patterson <[email protected]> | 2021-03-16 15:30:47 -0700 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2021-03-17 10:55:37 -0700 |
commit | 8359821870d756eb75d66c5ddb5d119f6247c35d (patch) | |
tree | da96d7248f3725aadd08eed812d5460f4d6a260d /vm.c | |
parent | ea817c60fcbdc2c4496be045f5bf028b702561ba (diff) |
Use rb_fstring for "defined" strings.
We can take advantage of fstrings to de-duplicate the defined strings.
This means we don't need to keep the list of defined strings on the VM
(or register them as mark objects)
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4279
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -2677,15 +2677,11 @@ ruby_vm_destruct(rb_vm_t *vm) static size_t vm_memsize(const void *ptr) { - const rb_vm_t *vmobj = ptr; size_t size = sizeof(rb_vm_t); // TODO // size += vmobj->ractor_num * sizeof(rb_ractor_t); - if (vmobj->defined_strings) { - size += DEFINED_EXPR * sizeof(VALUE); - } return size; } |