diff options
author | Jeremy Evans <[email protected]> | 2024-08-16 16:47:11 -0700 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2024-08-16 17:59:05 -0700 |
commit | d56470a27c5a8a2e7aee7a76cea445c2d29c0c59 (patch) | |
tree | 18fe6dc4b17464881276c0dcb5d499bc80101e6e /vm_insnhelper.c | |
parent | 2fe6a4f84d2bcf97d3be9bffa5f3232604201f55 (diff) |
Revert "Avoid hash allocation for certain proc calls"
This reverts commit abc04e898b627ab37fa9dd5e330f239768778d8b.
This caused problems in a Rails test.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11394
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 227bfa2004..4ce72ea81f 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2739,11 +2739,9 @@ vm_caller_setup_keyword_hash(const struct rb_callinfo *ci, VALUE keyword_hash) keyword_hash = rb_hash_dup(rb_to_hash_type(keyword_hash)); } } - else if (!IS_ARGS_KW_SPLAT_MUT(ci) && !RHASH_EMPTY_P(keyword_hash)) { + else if (!IS_ARGS_KW_SPLAT_MUT(ci)) { /* Convert a hash keyword splat to a new hash unless * a mutable keyword splat was passed. - * Skip allocating new hash for empty keyword splat, as empty - * keyword splat will be ignored by both callers. */ keyword_hash = rb_hash_dup(keyword_hash); } |