diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2023-04-18 14:45:18 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2023-04-18 16:56:48 -0700 |
commit | 3016f30c956413268655dcb25dbe5041684f9528 (patch) | |
tree | 2f8a0223155cf6f5fd3b543661b7d399b4a12491 /thread.c | |
parent | b09f5c7bf79d347aa6ed92964cff16d7da008ad9 (diff) | |
download | ruby-3016f30c956413268655dcb25dbe5041684f9528.tar.gz |
Return NULL to indicate the next shape isn't found
During compaction we must fix up shapes on objects who were extended but
then became embedded. `rb_shape_traverse_from_new_root` is supposed to
walk shape trees looking for a matching shape. When a shape has a
"single child" we weren't returning NULL when the edge names didn't
match.
In the case of a single outgoing edge, this patch returns NULL when the
child edge name doesn't match (similar to the case when a shape has a
hash of outgoing edges)
Diffstat (limited to 'thread.c')
0 files changed, 0 insertions, 0 deletions