summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2021-03-16 15:30:47 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2021-03-17 10:55:37 -0700
commit8359821870d756eb75d66c5ddb5d119f6247c35d (patch)
treeda96d7248f3725aadd08eed812d5460f4d6a260d /vm.c
parentea817c60fcbdc2c4496be045f5bf028b702561ba (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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/vm.c b/vm.c
index 6b8119b..1238ceb 100644
--- a/vm.c
+++ b/vm.c
@@ -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;
}